logo ASAP Utilities

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
      End If
End Sub

Chip Pearson has published a good article explaining event procedures in Excel.


« back

Home Privacy Policy Cookie Policy EULA Download All added Excel tools Sitemap Contact Us


Empowering Excel Users Worldwide for 25 Years