+ Reply to Thread
Results 1 to 4 of 4

how to over-ride the SAVE AS confirmation in a macro

Hybrid View

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    3

    how to over-ride the SAVE AS confirmation in a macro

    I am using macros to run a long and complicated query, I am entering a large number of formulas from the macros, I am using the SAVE AS command to minimise the file size at regular intervals as I copy and paste the results of the formulas inserted with the macros but need to bypass the confirmation window and let the macros keep running. Is there a simple code to add to allow this. Alternatively if there is an option to enable and disable this step in the Options, I have looked but cant see anything, which can be incorporated into a macro.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: how to over-ride the SAVE AS confirmation in a macro

    Try

    Application.DisplayAlerts = False
    at an appropriate point in your code.
    Martin

  3. #3
    Registered User
    Join Date
    01-24-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: how to over-ride the SAVE AS confirmation in a macro

    Thanks for the response, however I still get the request confirmation screen. I have played around where to locate the code but just get compile errors.

  4. #4
    Registered User
    Join Date
    01-24-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: how to over-ride the SAVE AS confirmation in a macro

    Eventually found where to insert the code, was inserting it too late. It works fine. Many thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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