• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Set multiple selected Pivot items through vba

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.
 
Back
Top