I have the following macro that runs very slow. Is there a way to speed it up? Any help would be great. Thanks.
![]()
Please Login or Register to view this content.
I have the following macro that runs very slow. Is there a way to speed it up? Any help would be great. Thanks.
![]()
Please Login or Register to view this content.
Last edited by rhudgins; 07-14-2010 at 01:58 PM.
Try this instead, it will copy all the rows with "1" in column AE but it will copy them all at once, so it should be almost instantaneous, even on large datasets.
![]()
Please Login or Register to view this content.
Last edited by JBeaucaire; 07-13-2010 at 11:40 PM. Reason: FIXED THE LASTCOL VARIABLE
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Hi
See how this goes.
rylo![]()
Please Login or Register to view this content.
Please check for the corrected version of the macro above.
Thank you both. I can use either of those macros, they both work perfectly.
I would like to make one slight modification. Can the macro also copy rows that have "#N/A" in column AE in addition to "1"?
Here you go:
![]()
Please Login or Register to view this content.
If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
Thanks this works now. I found one error. If there are no "1" or "N/A" in the column then the macro copies every row instead of not copying any.
Can this be fixed?
Try this:
![]()
Please Login or Register to view this content.
Thanks. Perfect.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks