Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP PLEASE! pivotitems won't get visible in Excel 2000 with VBA

Status
Not open for further replies.

kkhbjh

Technical User
Feb 21, 2003
2
NL
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top