Hi!
I am looking to only show two columns in my pivot table based on what the user selects out of a combo box. When recording it I only get the following:
With ActiveSheet.PivotTables("PivotTable1").PivotFields("Brand")
.PivotItems("Just For You").Visible = False
.PivotItems("(blank)").Visible = False
End With
This doesn't help me because I won't always know which variables to hide. Is there a way to get it to only select certain ones. I tried the reverse = True but that didn't work. I thought maybe I would hide them all and then show the ones I want but it won't let me hide them all. Any ideas??
Thanks,
Lauren
I am looking to only show two columns in my pivot table based on what the user selects out of a combo box. When recording it I only get the following:
With ActiveSheet.PivotTables("PivotTable1").PivotFields("Brand")
.PivotItems("Just For You").Visible = False
.PivotItems("(blank)").Visible = False
End With
This doesn't help me because I won't always know which variables to hide. Is there a way to get it to only select certain ones. I tried the reverse = True but that didn't work. I thought maybe I would hide them all and then show the ones I want but it won't let me hide them all. Any ideas??
Thanks,
Lauren