Abhishek Patil
New Member
All,
Need to select multiple Pivot items through vba
Note - I'm writing this query in BOXI
If I code in the following, it works & filters out S3 from the data, as the data has S3.
With .ActiveSheet.PivotTables("PivotTable1").PivotFields("Severity")
.PivotItems("S3").Visible = False
But If I code in the following, it fails as the data doesnt have S3.
With .ActiveSheet.PivotTables("PivotTable1").PivotFields("Severity")
.PivotItems("S4").Visible = False
Thanks in advance.
Need to select multiple Pivot items through vba
Note - I'm writing this query in BOXI
If I code in the following, it works & filters out S3 from the data, as the data has S3.
With .ActiveSheet.PivotTables("PivotTable1").PivotFields("Severity")
.PivotItems("S3").Visible = False
But If I code in the following, it fails as the data doesnt have S3.
With .ActiveSheet.PivotTables("PivotTable1").PivotFields("Severity")
.PivotItems("S4").Visible = False
Thanks in advance.