Results 1 to 5 of 5

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

Threaded View

justinbelkin How to Stop Macro From... 12-16-2013, 11:11 AM
JOHN H. DAVIS Re: How to Stop Macro From... 12-16-2013, 11:49 AM
justinbelkin Re: How to Stop Macro From... 12-16-2013, 12:43 PM
JOHN H. DAVIS Re: How to Stop Macro From... 12-16-2013, 01:06 PM
justinbelkin Re: How to Stop Macro From... 12-16-2013, 02:34 PM
  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:

    Sub Macro2()
    '
    LastRow = Cells(Rows.Count, "B").End(xlUp).Row
    
       ScreenUpdating = False
       
        Range("B3:B" & LastRow).Select
        Application.CutCopyMode = False
        Selection.Copy
        Range("C3:C" & LastRow).Select
        Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
            SkipBlanks:=False, Transpose:=False
    
        Columns("C").Replace What:="September", Replacement:="October", SearchOrder:=xlByColumns
    
        ScreenUpdating = True
    '    
    End Sub
    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.

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. [SOLVED] 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. 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