Results 1 to 4 of 4

VBA Code to Disable Save As (but not Save)

This is a discussion on VBA Code to Disable Save As (but not Save) within the Excel Questions forums, part of the Question Forums category; I would like to only allow the user to Save the file but not Save As to a different name ...

  1. #1
    Board Regular
    Join Date
    Jul 2004
    Posts
    749

    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
    69,371

    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:

    Disable "Save" option from File Menu
    Microsoft MVP - Excel

  3. #3
    MrExcel MVP
    Moderator
    Andrew Poulsom's Avatar
    Join Date
    Jul 2002
    Posts
    69,371

    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:

    Disable "Save" option from File Menu
    Microsoft MVP - Excel

  4. #4
    Board Regular
    Join Date
    Jul 2004
    Posts
    749

    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:

    Disable "Save" option from File Menu
    Just the job!

    Thanks,

    Mike

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