VBA - Serial Numbers

Toastis

Board Regular
Joined
Apr 20, 2011
Messages
65
I need some assistance creating a VBA code. I am pretty sure a standard formula won't work. Warehouse personnel will use this tracker. options would be enter a new tote or an old tote (old totes will already have numbers, new totes need a number). On the 2nd tab I associated the seriel number scheme applicable to each warehouse. I need code that will tell enter the next serial number and then cross it off the list once used, so to speak.

Any ideas?
WarehouseNew Or Old?Tote Serial Number
1N ?
1O 1234
1N ?

<tbody>
</tbody><colgroup><col><col><col></colgroup>







1-PHX2-TUC3-CAL4-LAV6-SAF7-ELP8-CHV9-BLM10-ABQ
100002000030000400006000070000800009000050000
100012000130001400016000170001800019000150001
100022000230002400026000270002800029000250002
100032000330003400036000370003800039000350003
100042000430004400046000470004800049000450004
100052000530005400056000570005800059000550005
100062000630006400066000670006800069000650006
100072000730007400076000770007800079000750007
100082000830008400086000870008800089000850008
100092000930009400096000970009800099000950009



<colgroup><col style="width: 48pt;" span="9" width="64">
<tbody>


</tbody>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
The second table is the series of serial numbers for each terminal. The top row is the terminal identifier and immediately under is the range of serial numbers available. If they can be built into the VBA code, that's wonderful. The beginning number is how we will associate them to the terminals. So WH 1 starts ALWAYS with 1, WH 2 starts ALWAYS with 2, the only one different is 10 which will start with 5.

Length of the serial number is immaterial.
 
Upvote 0
Warehouse = Terminal in the first table - I haven't changed the headers. The terms are interchangeable.
 
Upvote 0

Forum statistics

Threads
1,215,497
Messages
6,125,157
Members
449,208
Latest member
emmac

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