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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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,107
Messages
6,170,137
Members
452,304
Latest member
Thelingly95

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