+ Reply to Thread
Results 1 to 5 of 5

How to Stop Macro From Requiring File Open Prompt When Changing External WB Reference?

  1. #1
    Registered User
    Join Date
    06-24-2013
    Location
    New York
    MS-Off Ver
    Excel 2011
    Posts
    24

    How to Stop Macro From Requiring File Open Prompt When Changing External WB Reference?

    The following macro works okay with the exception of prompting me to open the file location over 500 times for each of the 500 formulas that I copy over from Column B to Column C. Also, after pasting the formulas the macro uses Find/Replace to update the file path from the previous month to the current month. Finally, the formulas reference a closed external workbook:

    Please Login or Register  to view this content.
    I thought that adding "ScreenUpdating = False" would suppress these open file prompts, but it doesn't seem to be having an effect. Is there a solution to suppress these prompts?
    Last edited by justinbelkin; 12-16-2013 at 12:49 PM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to Stop Macro From Requiring File Open Prompt When Changing External WB Reference?

    Are you calling this macro from another? Did you try application.displayalerts on the other macro? Otherwise I don't see where it is opening anything?
    Last edited by JOHN H. DAVIS; 12-16-2013 at 11:52 AM.

  3. #3
    Registered User
    Join Date
    06-24-2013
    Location
    New York
    MS-Off Ver
    Excel 2011
    Posts
    24

    Re: How to Stop Macro From Requiring File Open Prompt When Changing External WB Reference?

    Actually, that worked! When I use
    Please Login or Register  to view this content.
    the Open File prompts are suppressed just like I wanted. Thank you.
    Last edited by justinbelkin; 12-16-2013 at 12:48 PM.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to Stop Macro From Requiring File Open Prompt When Changing External WB Reference?

    You're welcome. Make sure you turn them back on by placing this at the end of your macro or you may regret it later.

    Application.Displayalerts = True

  5. #5
    Registered User
    Join Date
    06-24-2013
    Location
    New York
    MS-Off Ver
    Excel 2011
    Posts
    24

    Re: How to Stop Macro From Requiring File Open Prompt When Changing External WB Reference?

    Thanks - I did.

+ 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. Replies: 1
    Last Post: 10-30-2010, 08:06 AM
  2. Macro to open external file
    By redders in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-03-2010, 02:00 AM
  3. Replies: 3
    Last Post: 05-13-2009, 11:51 PM
  4. How to stop file open macro prompt after deleting all macros?
    By twor57 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2005, 01:10 PM
  5. [SOLVED] External Data Source updating on open, how to turn back on prompt.
    By kristy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2005, 02:06 AM

Tags for this Thread

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