Hi,
I can't know what fields will be filtered on so, so I need to extract all filters at run time. I need some VBA line(s) to do it please.
I tried activeCell.PivotCell.PivotTable.ActiveFilters and this returns 0 although there are definitely filters available.
The workaround which I'm not is very good I'm considering is:
activecell.PivotTable.PageFields.Items collection which also behaves weird:
activecell.PivotTable.PageFields.Count returns 2 at the same time it has 3 elements:
activecell.PivotTable.Item(0);activecell.PivotTable.Item(1);activecell.PivotTable.Item(2)
Many Thanx
I can't know what fields will be filtered on so, so I need to extract all filters at run time. I need some VBA line(s) to do it please.
I tried activeCell.PivotCell.PivotTable.ActiveFilters and this returns 0 although there are definitely filters available.
The workaround which I'm not is very good I'm considering is:
activecell.PivotTable.PageFields.Items collection which also behaves weird:
activecell.PivotTable.PageFields.Count returns 2 at the same time it has 3 elements:
activecell.PivotTable.Item(0);activecell.PivotTable.Item(1);activecell.PivotTable.Item(2)
Many Thanx