Results 1 to 19 of 19

Code running slowly

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Code running slowly

    I have the following code that is running slowly. Is there another way to speed up the copy and paste function that it is performing? The copy range should always start in cell B3 and the last row of the copy range will vary every time I run the code. Any help would be appreciated.


    Sub CopyLiveData()
    
    Windows("ANR for multiple tickers.xls").Activate
        Range("B3:Q5999").Select
        Selection.Copy
    
    Windows("ANR for multiple tickers 2.xls").Activate
        Range("B1").Select
    
        Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
            xlNone, SkipBlanks:=False, Transpose:=False
        Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
            SkipBlanks:=False, Transpose:=False
    
    End SUb
    Last edited by rhudgins; 02-01-2011 at 11:09 AM.

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