Macro to save file based on series of numbers

mrkast

New Member
Joined
Apr 30, 2020
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I am a little rusty on my macro skills and need some pointers on where to get started on a project I have undertaken at a new job.

We have a excel file template we created for purchase orders that I have to manually go into and change the PO# in a cell, protect the worksheet, and then save it as the PO#. I have to create a large amount of these at once so other people can use the protected sheets.

I was hoping I could find a way to have at the very least the main template have a macro that would auto create a new workbook based on the template, fill in the necessary number, and then save the file as that number. If I could have a pop up or just somewhere on the template workbook where I list the beginning and ending number and it created each file that would be ideal.

I am not sure how protecting a workbook works with macros.

Thank you in advance for any help.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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