VBA- Auto-generate PO# and Auto-save as PO# for file name

mycl1

New Member
Joined
Jan 17, 2016
Messages
1
There is already a "Purchase Order" excel Template worksheet. There are 4-5 people using this document in one office, and they have a shared server where all purchase orders are stored inside a folder that is shared by everyone.

Requirements: Whenever someone opens this Purchase Order document and completes it..created a button on the page that will automatically assign a PO# (auto-generated) in sequential order from previous Purchase Order#. (For example. if first PO# is 100, next one that is saved should be 101, next one should be 102, etc.). Also, when clicking this button, it will automatically save the Purchase Order in a specific folder on the server, with naming convention example, PO# 100, PO# 101, PO# 102, etc.

Does someone have a code that they can send me? I assume its fairly easy.

Thank you-
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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