I am attempting to set up a macro that will cycle through the worksheets in my file and update my pivot tables.
The below code will cycle through each worksheet and each pivot table:
the next step is where I'm having issues. I want to update two filters on each pivot table (all the same) . I attempted to record a macro to figure out how to get it done, but can't figure out how to incorporate it into my for /next loops:
I get the error "Method 'PivotTables' of object'_worksheet' failed." when I try the below code:
any guidance is appreciated.
Bookmarks