Macro to populate column on critera from barcode scanner

mir994stan

New Member
Joined
Jul 18, 2021
Messages
42
Office Version
  1. 2016
Platform
  1. Windows
Greetings to everyone,
i want to automate one procces at work, maybe it sound simple but i would need some help with macro coding. I have worksheet with unlocked 2 columns for data input, columns A and B. In column A i would like to write locations ( all locations are in this format 1-1-1, combinations of numbers from 1 to 10 ) and in column B ID numbers (Box ID format M007623121). Just to track my inventory in workshop. So i would need a macro to separate location data only to column A and box ID to column B.
What i' m trying to get here is, every value that i get with scanner that isn t location value to be writen in column B, and only locations to be in column A. Something like this in screen shot below. Any chance to make this work?
I could make this work by scanning location for each box, but i would like to scan location only once and then scan all boxes that would be stored there. To save time for scanning.
Thanks in advance!
scannerCC.PNG
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top