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
Share this page:
Home Sitemap Search List of all utilities Printer friendly page ^ Back to Top
© 1999-2017 - - - - The Netherlands

Connect with us and receive our tips that show you how to benefit from the tools in ASAP Utilities at:
Follow us on TwitterFollow us on Facebook