Creating sequential work order numbers

UMAKEMESIK

Active Member
Joined
Oct 3, 2005
Messages
378
I have sheet 1 with a macro button. I would like to click on that button and it will call to a macro or another sheet within the workbook to create a new number ( last po + 1) number and then paste it into a specified cell on worksheet 1.

any thoughts.

thanks
 
I finally got around to trying this out after a long awaited vacation.

This is interesting. When I click on my macro button it applies numbers in column b from 1 to 3000 ( if I put 3000 in the test value page)

if i put 50 in the test value page it applies numbers from 1-50 in column b.

How can i restrict the numbering to just one cell. And can i build on the number like 3000+1.

Also I would like to embed all code into one worksheet. ie. I would make the testvalue on sheet 3 then hide the sheet.

Thanks so much for the code provided!!!!!

I know we are all busy so if you don't have time i totally understand.
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I wanted to thank you again for taking your time in trying to help me on this project. With the help of Users on the msg board we were able to figure it out and now my sheet works like a charm.

Thanks again!!

I can now genereate a sequential number from another sheet within the same workbook.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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