I have a PT that is created from a Power Pivot table and I want to loop through each item in the 1 column of the PT.
I thought the following would work
but I am getting a 1004 error, Unable to get the PivotFields property of the PivotTable class
I know the ptPivotTableList variable is working as I have used in a previous line of code
I have no idea why thsi won't work as I have used it many times before.
TIA
I thought the following would work
Code:
Set ptField = ptPivotTableList.PivotFields("Proper Name")
I know the ptPivotTableList variable is working as I have used in a previous line of code
Code:
ptPivotTableList.PivotFields("[tbl_FAASM].[Region].[Region]").ClearAllFilters
I have no idea why thsi won't work as I have used it many times before.
TIA