Add loop and stop to Excel Macro -
no code experience. have excel file macro scan product bar-codes handheld scanner. have click "scan" every product. how add loop to:
* return start position when scanning complete
* stop when done scanning. add stop button file
info, below current macro i'd add loop , stop.
sub scanner_input() dim myproduct string dim lastrow object myproduct = application.inputbox("please scan product code", "product id", type:=1) set lastrow = sheets("database").range("a65536").end(xlup) lastrow .offset(1, 2) = myproduct end end sub
Comments
Post a Comment