Results 1 to 9 of 9

Disable Save/SaveAs in 2007

Threaded View

  1. #1
    Registered User
    Join Date
    02-22-2010
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2007
    Posts
    41

    Disable Save/SaveAs in 2007

    Im currently using this code, however theres multiple ways of doing this.

    However, it doesn't encompass the Save feature. Just save as. I need both disabled. Either by BeforeSave event or by disabling them from the menu. The latter would be even better.

    
    Private Sub Workbook_BeforeSave(ByVal SaveUI As Boolean, Cancel As Boolean)
    If SaveAsUI Then
    MsgBox "The 'Saving' functions have been disabled." & Chr(10) & "Please save via the 'Save Button' provided in the Grid", vbInformation, "Save As Disabled"
    Cancel = True
    End If
    End Sub
    Last edited by ultimastryder; 06-28-2010 at 11:45 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1