So, I've written some VB to filter a pivot table based on a range.
Worksheets("Collections By Timekeepers").PivotTables("Collections By Timekeepers").PivotFields(1).VisibleItemsList = arrFilters
Now I need to do the same but with HiddenItemsList, however, I'm getting a 1004 "Application-defined or object-defined error" despite being an OLAP cube.
Worksheets("Collections By Timekeepers").PivotTables("Collections By Timekeepers").PivotFields(2).HiddenItemsList = arrFilters
Is there a work around, or another way to exclude items?