Read only templates

jondallimore

Board Regular
Joined
Apr 26, 2012
Messages
136
Perhaps not strictly an excel question, but...

I would like to set an excel sheet to read only to serve as a template file.

However - when someone copies the file, the copy is also read only.

How can I make the template file read only, but any copies of it editable? Is it a windows function, or can it be done within Excel, maybe VBA?

thanks
Jon
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
It can be done with VBA, but I am not sure if that is the route you want to take. How are the copies of the template made?
  1. Do the users just make a copy in File Manager, or
  2. do they open the template and save it as?
  3. Or do they use a macro to open the template?
 
Upvote 0
If you do not set to Read only in Excel, but in Windows Explorer right click , properties and set to read only there, then if they make a copy in Explorer the copy is not read only,. if the open by double clicking the template, then they need to do a file save anyway. Does that help?
 
Upvote 0
Mmh, with me a copy made in Explorer loses The read only attributen.
 
Upvote 0
Not with me. Maybe its a windows setting.

It actually works better - users are prompted to save as a different file, which is whats needed.

One question - is there a way to lock the setting, so no users can right click and change it through properties?
 
Upvote 0
Yes : if the user has only read access to the directory.
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,835
Members
449,471
Latest member
lachbee

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