Excel tip: Turn off the "Save as" function: save with the current file name only.Date: 17 march 2002
It is possible to turn off the save as function, for example if you want people to save with the current file name only.
Place the following code in the workbooks beforesave event:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If SaveAsUI = True Then
MsgBox "Please use 'Save' to Save this Workbook...", vbCritical, "Your title"
Cancel = True
Chip Pearson has published a good article explaining event procedures in Excel.
Share this page:
List of all utilities
Printer friendly page
^ Back to Top