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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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