+ Reply to Thread
Results 1 to 2 of 2

Copy/Paste cells based on multiple criteria

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Italy
    MS-Off Ver
    Excel 2010
    Posts
    3

    Copy/Paste cells based on multiple criteria

    Hi,
    I've been using a code to find,copy and paste cells containing one of multiple criteria in Excel 2007 and it worked fast and perfectly.
    Then after an hard disk failure and having to reinstall the OS I decided to upgrade to Excel 2010.
    It still SEEMS to run fast but AFTER all the data I need have been copied/pasted the program freezes for 6-7 seconds during which I can't click any cell.
    For half of those seconds the mouse icon spins as if Excel was processing something, then it turns back to its usual shape but it still doesn't let me click anywhere for sometime.
    This is a big problem since this code is part of a bigger one that repeats itself for hundreds of times so losing 6-7 seconds each time really slows the process to the point it becomes useless.
    Here's the code:

    Please Login or Register  to view this content.
    I tried to install a trial Copy of Excel 2013 but in that version the problem not only is not resolved but it gets really worse.
    For comparison: a "cycle" of the bigger code in Excel 2007 ran in 16 seconds, in Excel 2010 in 23 seconds, in Excel 2013 in 35-40 seconds.
    Note that if I run the code asking it to search for just one criteria everything runs fast without any lags.
    But unfortunately that's not what I need.
    Is there a way to speed up my code?
    Thanks in advance

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Copy/Paste cells based on multiple criteria

    This is should be faster. Maybe less than a second.

    Please Login or Register  to view this content.

+ 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