Hey,
So here is the code I'm using, im usually running it on about 20k cells at a time.
is there a way to speed up this code?
thank you!
Please Login or Register to view this content.
Hey,
So here is the code I'm using, im usually running it on about 20k cells at a time.
is there a way to speed up this code?
thank you!
Please Login or Register to view this content.
Deleting rows is the worst process for Excel to handle - it has always been problematic. After every row deletion, Excel rebuilds its calculation tree, and that is a process that takes time.
The key is to use a column of formulas to label the correct rows for deletion, then sort the data based on the formula to group the rows needing deletion into one block - one deletion, one rebuild of the calculation tree.
Code is this, based on yours with some of my other preferred changes:
Please Login or Register to view this content.
Last edited by Bernie Deitrick; 04-15-2021 at 05:24 PM.
Bernie Deitrick
Excel MVP 2000-2010
Thank you so much! works like a charm!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks