Hey guys!
I need help with regards to applying filters to a pivot table with VBA.
My code works fine when the applied filters are available in the pivot table. However, my code stops whenever an applied filter is not found.
For that reason, I was thinking of using a loop that would continue to next filter on error... but I don't know how to code it or even if that would work.
Here is my code below that applies my filters to the pivot table:
HTML Code:
The code stops working when either today's date or tomorrow's date is not available as a filter.
Help please![]()
Bookmarks