Hi
I am familiar with Access VBA and basic VB not really excel vba. I have been tasked with a problem and I am a little stumped - can anyone help?
An object is scanned and the bar coder opens a new workbook(1) and enters the barcode into cell A1. When the next scan occurs it opens a new workbook(2) and puts the bar code into cell A1 - as you can imagine this is not practical.
I need to get the value of cell A1 - when the new workbook is activated, pass the value to a variable then close the active spreadsheet and put the variable into the next empty cell in the data collection spreadsheet.
I am stuck on - when to call the procedure - do I wait until 20 active workbooks are open and loop through or can it be done automatically when a new a1 cell is activated?
I would be grateful for any ideas
Many thanks
I am familiar with Access VBA and basic VB not really excel vba. I have been tasked with a problem and I am a little stumped - can anyone help?
An object is scanned and the bar coder opens a new workbook(1) and enters the barcode into cell A1. When the next scan occurs it opens a new workbook(2) and puts the bar code into cell A1 - as you can imagine this is not practical.
I need to get the value of cell A1 - when the new workbook is activated, pass the value to a variable then close the active spreadsheet and put the variable into the next empty cell in the data collection spreadsheet.
I am stuck on - when to call the procedure - do I wait until 20 active workbooks are open and loop through or can it be done automatically when a new a1 cell is activated?
I would be grateful for any ideas
Many thanks