I am trying to use VBA to filter a pivot table. My problem is that I want to make sure the only thing showing is the one item the user selected. How do I make sure to turn off all of the other values?
I have a range (CAList). When the user clicks on one of those cells, I want the "CA" field in the pivot table (PivotTable2) to be filtered to show the CA that the user clicked on. This is the code I have right now. I can see it cycling through and making all of the CA's invisible and then making the correct one visible, but the table on the sheet is always left with the last CA being visible.
Bookmarks