The title says it all; after doing much reading and referencing unhelpful MSDN posts, I came to a dead end.
I have cells A1:A10 which have certain values entered in manually.
I have a pivot table with data similar to the data entered in manually for cells A1:A10.
I want the pivot items in my pivot table to show only the items that are in the range A1:10, and hide items that were not found.
This is what I've come up with so far:
Unfortunately it will filter only on one cell within the range, not all 10.
Any help with this would be greatly appreciated!
-Dylan
I have cells A1:A10 which have certain values entered in manually.
I have a pivot table with data similar to the data entered in manually for cells A1:A10.
I want the pivot items in my pivot table to show only the items that are in the range A1:10, and hide items that were not found.
This is what I've come up with so far:
Code:
Sub PT()
'
'PT Macro
'
Dim PT As PivotTable
Set PT = Sheets("Sheet3").PivotTables("PivotTable2")
PT.PivotFields("Server").CurrentPage = Sheets("Sheet2").Range("a1:a10").Value
Set PT = Nothing
End Sub
Any help with this would be greatly appreciated!
-Dylan