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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visible=False Pivot Table Macro 1

Status
Not open for further replies.

Tdharris

Technical User
Oct 6, 2010
13
US
I am using Microsoft 2010

Thanks,
TDH

TDH
Business App System Analyst
Information Technology
 

You may want to check if this .PivotItems exist, or ignore the error and Resume Next:

[tt]
[blue]On Error Resume Next[/blue]

With ActiveSheet.PivotTables("PivotTable1").PivotFields("Url")
.PivotItems("_catalogs/masterpage").Visible = False
.PivotItems("_catalogs/masterpage/Editing Menu").Visible = False
.PivotItems("_catalogs/masterpage/Editing Menu/CustomSiteAction.xml").Visible = False
End With
[blue]
On Error GoTo 0[/blue]
[/tt]

Have fun.

---- Andy
 
Thanks Andy! It worked PERFECTLY!



TDH
Business App System Analyst
Information Technology
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top