I am using Excel VBA and I want to be able to use VBA to cycle through all of the possible combinations of a pivot table. I used the Macro recorder but all it does is record the specific items. For example:
ActiveSheet.PivotTables("PivotTable1").PivotFields("Group").CurrentPage = _
"(All)"
I want to be able to cycle through all of the items in group beginning with "(All)" and going through the rest.
I have tried various syntax changes, none of which have worked.
ActiveSheet.PivotTables("PivotTable1").PivotFields("Group").CurrentPage = _
"(All)"
I want to be able to cycle through all of the items in group beginning with "(All)" and going through the rest.
I have tried various syntax changes, none of which have worked.