Hi i have the following code that is filtering over 40k lines of data but is taking too long, is there anyway to speed this up?
Please Login or Register to view this content.
Hi i have the following code that is filtering over 40k lines of data but is taking too long, is there anyway to speed this up?
Please Login or Register to view this content.
'Bump - No response
Hi,
in fact, filtering pivot tables is horrible..
Changes:
1. Declare your variables !
2. Looping the worksheets only once
3. At first removing all filters from the pivot table, then hiding according to conditions. This is faster than setting an item to visible which is visible already.
4. "If" condition rewritten, the problem with "If xx Or yy" is that although xx is true, yy is checked too. Therefor place the condition which will be most likely true at the beginning.
Cannot test it with 40k records (slow machine) but experienced half runtime with 1k records.
Code:
Please Login or Register to view this content.
Please use [CODE]-TAGS
When your problem is solved mark the thread SOLVED
If an answer has helped you please click to give reputation
Read the FORUM RULES
Ah i see where i went wrong, you are a genius!
Thank you so much
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks