Been through everything that I can find but can't work this one out, probably means it's simple!
I have a pivot table with 2 rowfields. I want to count the displayed items in rowfield2 when rowfield1 has a filter applied.
I can count all of the items in the rowfield2 using
I need the same but only for displayed items when Rowfield1 only has one item selected.
Thanks in advance for any help.
Phil.
I have a pivot table with 2 rowfields. I want to count the displayed items in rowfield2 when rowfield1 has a filter applied.
I can count all of the items in the rowfield2 using
Code:
Worksheets(1).PivotTables(1).PivotFields("Rowfield2").PivotItems.Count
I need the same but only for displayed items when Rowfield1 only has one item selected.
Thanks in advance for any help.
Phil.