I'm looking for some VBA to simply display those fields of my pivot table and the values of the fields that may have been filtered by the user.
In this case there may be multiple filters applied and multiple values in the filters.
It seems like this should be a relatively easy find but I'm not finding anything helpful when searching.
Can anyone point me in the right direction?
This gets me the Pivot tables on the sheet with the list of fields for each.. how do I get the filters applied to each field??
Sub test()
Set Sht2 = Sheets("8800")
With Sht2
For Each tbl In .PivotTables
For Each fld In tbl.PivotFields
Debug.Print tbl.Name & " - " & fld.Name
Next fld
Next tbl
End With
End Sub
VB,