Holla! I am trying to filter pivot table using macros. The code as follows:
Dim Pi As PivotItem
With ActiveWorkbook.Worksheets("TimeToFreq").PivotTables("timetofreq").PivotFields("Transaction status")
.ClearAllFilters
.PivotItems("success").Visible = True
End With
However i am getting error 1004
Unable to get the PivotFields property of the PivotTable class
Screenshots:
I've browsed a lot of forums and the only answer i could found was that pivot table or field with such name does not exist, but mine does. I even tried to use other fields that i have and it still gives me this error. I use MS office 2013