+ Reply to Thread
Results 1 to 3 of 3

Deactivating Save options

  1. #1
    Registered User
    Join Date
    08-04-2008
    Location
    Blackpool
    Posts
    22

    Deactivating Save options

    I have a worksheet that has a button for users that saves the workbook after running a macro.

    If they use the normal save methods (File > save; or the save icon in the menu bar) it obviously by-passes the macro.

    Is there any way i can deactivate the normal save options to force users to use the button I set up for them?


    (My first idea was to make any form of save run the macro, but i have two different "save macros" i want to run with a button for each...)


    Thanks in advance for any help!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You can set a public flag in your save code, and clear it following your custom save.

    In the Workbook_BeforeSave event, cancel the save if the flag is not set.

  3. #3
    Registered User
    Join Date
    08-04-2008
    Location
    Blackpool
    Posts
    22
    Quote Originally Posted by shg View Post
    You can set a public flag in your save code, and clear it following your custom save.

    In the Workbook_BeforeSave event, cancel the save if the flag is not set.
    That sounds great - exactly what i need. But i have no idea how to do that...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. can I disable save but keep save as
    By tryer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2008, 09:18 AM
  2. Macro On Save
    By uktomuk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2008, 08:53 AM
  3. Unique Auto Save
    By bcr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2008, 01:44 AM
  4. Save Macro Problem (Digital Signature)
    By JPH-PCCoor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2007, 11:16 AM
  5. Save prompt with csv files
    By mcicoff in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-23-2007, 02:42 PM

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