Excel disable the save as command.
Solved
FredHub
-
Muriel -
Muriel -
Hello,
I have a shared Excel file for which I want to disable the "Save As..." command. I would like users to only use the "Save" command to save their work.
Can someone help me?
Thank you in advance and best regards.
Configuration: Windows XP / Internet Explorer 6.0 / Excel 2003
I have a shared Excel file for which I want to disable the "Save As..." command. I would like users to only use the "Save" command to save their work.
Can someone help me?
Thank you in advance and best regards.
Configuration: Windows XP / Internet Explorer 6.0 / Excel 2003
2 answers
-
Hello,
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Cancel = SaveAsUI End Sub
You can add an information dialog if you want...
eric-
-
-
Hello,
Like this for example:Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) If SaveAsUI Then MsgBox ("The 'Save As...' command is disabled") Cancel = SaveAsUI End Sub
@chossette: if the file has never been saved, the 'Save As...' dialog box is always proposed. So you can't save it.
eric -
-
-
-
If I remember correctly with Excel 2003
your mouse should be on your menu bar between "File" and "Edit" for example
you right-click your mouse
a window opens with all the menus
at the bottom of this window, click on CUSTOMIZE
click on the COMMAND tab
hover your mouse over File (as if you wanted to save your work)
go to SAVE AS...
it gets highlighted with a black frame
right-click
and click delete
and your SAVE AS menu will disappear
--
I rush to laugh at everything for fear of crying-
Thank you, jfqld, for your detailed instructions. However, the problem remains unresolved. I do not wish to hide the "Save as..." command in Excel; rather, I want the command to be inaccessible for a specific file, and the same should apply to all users who open this file. However, the command should remain accessible for all other Excel files.
-