N
Nicodemus
Hello all,
In VBA, I try to count the items left after filtering a PivotTable, but I
can't get it working !
Here is what I do :
a) to filter :
ActiveSheet.PivotTables("myPT").PivotFields("GENDER").CurrentPage = "MALE"
b) to count :
MFDATE_Cnt =
ActiveSheet.PivotTables("myPT").PivotFields("GENDER").PivotItems.Count
The counting should differ after selecting "MALE" or "FEMALE", but still
gives me the same value, which is actually the total of both genders.
Can someone help me on this ?
Thx in advance,
Nicodemus
In VBA, I try to count the items left after filtering a PivotTable, but I
can't get it working !
Here is what I do :
a) to filter :
ActiveSheet.PivotTables("myPT").PivotFields("GENDER").CurrentPage = "MALE"
b) to count :
MFDATE_Cnt =
ActiveSheet.PivotTables("myPT").PivotFields("GENDER").PivotItems.Count
The counting should differ after selecting "MALE" or "FEMALE", but still
gives me the same value, which is actually the total of both genders.
Can someone help me on this ?
Thx in advance,
Nicodemus