I have an excel sheet with an pivottable.
I want to make some code that sets the pivotitems visible, but it wont work!! I get an error message about ; unable to set the visible property..
Visible= false works fine! This is the code:
Sheets("C-omzet clusters"
.Select
ActiveSheet.PivotTables("PivotTable1"
.PivotFields("BU"
.CurrentPage = "BUB1"
With ActiveSheet.PivotTables("PivotTable1"
.PivotFields("Cluster"
.PivotItems("B - Systems Management"
.Visible = False
.PivotItems("B - Systems Management"
.Visible = true End With
I want to make some code that sets the pivotitems visible, but it wont work!! I get an error message about ; unable to set the visible property..
Visible= false works fine! This is the code:
Sheets("C-omzet clusters"
ActiveSheet.PivotTables("PivotTable1"
With ActiveSheet.PivotTables("PivotTable1"
.PivotItems("B - Systems Management"
.PivotItems("B - Systems Management"