+ Reply to Thread
Results 1 to 6 of 6

Sequential copy/pastes in macro take too much time

  1. #1
    Registered User
    Join Date
    03-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Sequential copy/pastes in macro take too much time

    I have the following sequence of copy/pastes in a macro, can they be made more efficient? Thank you.

    ----------------------------------------------------------------------------
    Please Login or Register  to view this content.
    Last edited by macaonghus; 12-28-2014 at 07:14 AM.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Is it possible to make this more efficient?


    Must read forum rules ‼ Code tags !

    Yes, you can run that code more efficient by not using any Select
    and just by reading VBA inner help of Copy method by using its Destination parameter (see its sample) !
    Last edited by Marc L; 12-27-2014 at 03:11 PM.

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Is it possible to make this more efficient?

    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  4. #4
    Registered User
    Join Date
    03-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Re: Is it possible to make this more efficient?

    pjwhitfield, when I run that I get "Wrong number of arguments or invalid property assignment" in the first line (xarray = ....).

    I've tried fixing it but I can't see the solution; is it obvious to to you?

  5. #5
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Sequential copy/pastes in macro take too much time

    you didn't define your LastRow
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Sequential copy/pastes in macro take too much time

    Please Login or Register  to view this content.
    Last edited by AB33; 12-27-2014 at 05:15 PM.

+ 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. how to make reconciliations more efficient
    By zazzz in forum Excel General
    Replies: 5
    Last Post: 07-22-2013, 09:38 AM
  2. [SOLVED] How can I make this code more efficient?
    By Mr.Whiskers in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2012, 11:11 PM
  3. How to make VBA code more efficient?
    By globulous in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2010, 12:02 PM
  4. How to make Excel VBA more efficient?
    By mhni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2009, 04:31 PM
  5. [SOLVED] need to make code more efficient (if possible)
    By Lilivati in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-07-2006, 02:55 PM

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