+ Reply to Thread
Results 1 to 2 of 2

VBA: Open Save Prompt & execute macros based on user decision (save or cancel the save pro

  1. #1
    Registered User
    Join Date
    03-24-2014
    Location
    Vienna, Austria
    MS-Off Ver
    Excel 2010
    Posts
    72

    VBA: Open Save Prompt & execute macros based on user decision (save or cancel the save pro

    Hey. I would like to do a check for ReadOnly and then ask the user if he/she wants to save as a new file.
    If the answer is no, it will exit sub (should work already).
    If the answer is yes, a save prompt will open. Now again I would like to have an If-function that if the user actually does save the file, the macros are called. BUT if the user changes during the save prompt his/her mind, I would like to "Exit Sub" as well.

    That's the code:

    Please Login or Register  to view this content.
    Somebody knows how to put an if-clause based on the outcome of the Application.Dialogs(xlDialogSaveAs).Show "Holiday_Planner_Copy_NonReadOnly" ?

    Thank you

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VBA: Open Save Prompt & execute macros based on user decision (save or cancel the save

    Please Login or Register  to view this content.
    Change x to whatever you feel is more relevant.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ 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. Macro with cell reference as a name, but prompt for save location and save as csv
    By tomham in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2012, 06:21 PM
  2. VBScript to prompt Save on Cancel click
    By paperclip in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-03-2006, 11:11 AM
  3. Replies: 1
    Last Post: 02-24-2006, 10:15 PM
  4. Replies: 1
    Last Post: 12-19-2005, 08:15 AM
  5. [SOLVED] How to CANCEL file SAVE PROMPT when MACRO is running?
    By Stuart Macro Muppet in forum Excel General
    Replies: 2
    Last Post: 08-11-2005, 08:05 AM
  6. [SOLVED] Re: How to CANCEL file SAVE PROMPT when MACRO is running?
    By Alan in forum Excel General
    Replies: 0
    Last Post: 08-11-2005, 08:05 AM
  7. Cancel Macro is user selects 'cancel' at save menu
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2005, 01:06 PM
  8. No prompt when closing worksheet to save/ cancel
    By Voyager in forum Excel General
    Replies: 1
    Last Post: 03-31-2005, 03:48 AM

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