Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Feb 2003
    Posts
    363
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Preventing Save AS (xl2000)

    Is there a way to disable the SAVE AS feature so a user would not be able to change the name of the file

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Preventing Save AS (xl2000)

    How about this added to the thisworkbook object. It doesn't prevent copying an moving sheets to a NEW workbook, or copying the fiel itself in windows with another name.

    Steve

    <pre>Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    If SaveAsUI Then
    Cancel = True
    MsgBox ("You may NOT Use Save AS on this file")
    End If
    End Sub</pre>


  3. #3
    3 Star Lounger
    Join Date
    Feb 2003
    Posts
    363
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Preventing Save AS (xl2000)

    Steve
    Thanks. this is a good start. I was trying something similar but this is better

Posting Permissions

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