Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   Disable Save As option (https://www.askmehelpdesk.com/showthread.php?t=371227)

  • Jul 2, 2009, 03:31 AM
    kvinay_00
    Disable Save As option
    Is there any way to disable only "Save As" option (Save option works)?

    Thanks
  • Jul 2, 2009, 07:52 AM
    JBeaucaire

    Put the following macro into the ThisWorkbook module of the book:
    Code:

    Option Explicit

    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
        If SaveAsUI Then
            MsgBox "The 'Save As' function has been disabled." & Chr(10) & _
                "Only 'Save' will work.", vbInformation, "Save As Disabled"
            Cancel = True
        End If
    End Sub

    (source)
  • Jul 2, 2009, 11:03 PM
    kvinay_00
    Thank you !

  • All times are GMT -7. The time now is 07:00 PM.