Create copy of current workbook and save as filename in cell

ExcelPhil

New Member
Joined
Feb 21, 2010
Messages
35
Hi guys,

I have a spreadsheet I use as a template for employees to fill in.

I would like to save the workbook after employees have entered details under their name located in cell M1 but not overide the current template.

So they start by opening the spreadsheet template.xlsm.

Enter their details and press a custom save button.

Saves their details to new file EmployeeName.xlsm

But doesn't save anything to template.xlsm.

Can anyone help me with the VBA code for this?

Any help would be greatly appreciated.

Thanks.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi ExcelPhil,

Instead of code why not just make the file read-only by the following four steps:

1. Right-clicking on the file (ensuring it's closed) in Windows Explorer
2. Select Properties from the shortcut menu
3. Clicking the Read-only checkbox of the Attributes options from the General tab
4. Click OK

You will of course have to remove the read-only property if you need to make any changes to the file.

Regards,

Robert
 
Upvote 0
Hi ExcelPhil,

Instead of code why not just make the file read-only by the following four steps:

1. Right-clicking on the file (ensuring it's closed) in Windows Explorer
2. Select Properties from the shortcut menu
3. Clicking the Read-only checkbox of the Attributes options from the General tab
4. Click OK

You will of course have to remove the read-only property if you need to make any changes to the file.

Regards,

Robert

Thanks Robert I will give that a go.
 
Upvote 0

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