Locking/Protecting the filename

JBronts

New Member
Joined
Jan 3, 2007
Messages
1
Hi,

Does anyone know how to lock the filename of a spreadsheet so other users can't rename it? (ie protect the filename). The reason I want to do this is because I have other spreadsheets (workbooks) that refer to it and don't want anyone changing the filename. I thought this would be relatively easy but can't find how to do this anywhere!

Thanking anyone that can help in advance.

Cheers
Jason
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Good afternoon JBronts

This is not really an Excel issue, but more of an OS issue. See your if IT department can set up restrictions / permissions on this file.

HTH

DominicB
 
Upvote 0
Hi,Does anyone know how to lock the filename of a spreadsheet so other users can't rename it? (ie protect the filename). The reason I want to do this is because I have other spreadsheets (workbooks) that refer to it and don't want anyone changing the filename. I thought this would be relatively easy but can't find how to do this anywhere!Thanking anyone that can help in advance.CheersJason
Not sure if this is what you are looking for but I put this in the workbook save private sub. It cancels the 'save as' option so you can only use save and therefore not change the name.Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)If SaveAsUI = True Then Cancel = TrueEnd Subhope it helps
 
Upvote 0

Forum statistics

Threads
1,223,104
Messages
6,170,125
Members
452,303
Latest member
c4cstore

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