VBA Code to Disable Save As (but not Save)

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: VBA Code to Disable Save As (but not Save)

  1. #1
    Board Regular
    Join Date
    Jul 2004
    Posts
    816
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default VBA Code to Disable Save As (but not Save)

     
    I would like to only allow the user to Save the file but not Save As to a different name or location. Is it possible to do this?

    Thanks,

    MikeG

  2. #2
    MrExcel MVP
    Moderator
    Andrew Poulsom's Avatar
    Join Date
    Jul 2002
    Posts
    73,092
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VBA Code to Disable Save As (but not Save)

    You can test the value of SaveAsUI in the Workbook_BeforeSave event procedure. Here's an example from 2002:

    http://www.mrexcel.com/forum/excel-q...file-menu.html
    Microsoft MVP - Excel

  3. #3
    MrExcel MVP
    Moderator
    Andrew Poulsom's Avatar
    Join Date
    Jul 2002
    Posts
    73,092
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VBA Code to Disable Save As (but not Save)

    You can test the value of SaveAsUI in the Workbook_BeforeSave event procedure. Here's an example from 2002:

    http://www.mrexcel.com/forum/excel-q...file-menu.html
    Microsoft MVP - Excel

  4. #4
    Board Regular
    Join Date
    Jul 2004
    Posts
    816
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: VBA Code to Disable Save As (but not Save)

      
    Quote Originally Posted by Andrew Poulsom View Post
    You can test the value of SaveAsUI in the Workbook_BeforeSave event procedure. Here's an example from 2002:

    http://www.mrexcel.com/forum/excel-q...file-menu.html
    Just the job!

    Thanks,

    Mike

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com