+ Reply to Thread
Results 1 to 4 of 4

Copy/paste macro is running slow

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Red face Copy/paste macro is running slow

    Hi,

    Following macro is running slowly (30 minutes). I have to copy paste several rows from each drop down box to new worksheet. However, each time calculations have to be made to get data for each drop down list member (there are about 760 members). I am sending the code below. Is there any way to make it work faster with alternative codes.

    Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,219

    Re: Copy/paste macro is running slow

    Hi Kaplan275,

    You need to try the "Destination" word in your vba. Look at http://www.tushar-mehta.com/excel/vb...acro_recorder/ and look at example 1 to see what I mean.

    I hope this helps.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    06-22-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Copy/paste macro is running slow

    Hi MarvinP,

    Thanks for your reply

    I actually ended up creating a long row with needed cells at the end worksheet (with formula) where my drop box information is located. Then I just copy that one row to the new worksheet. It is much faster now.

  4. #4
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Copy/paste macro is running slow

    Try adding application.screenupdating = false at the start of your code, then set it back to true at the end of your code. You won't know yourself!

+ 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