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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,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