Jul 5, 2011 #1 Tdharris Technical User Oct 6, 2010 13 US I am using Microsoft 2010 Thanks, TDH TDH Business App System Analyst Information Technology
Jul 5, 2011 1 #2 Andrzejek Programmer Jan 10, 2006 8,548 US 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 Upvote 0 Downvote
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
Jul 5, 2011 Thread starter #3 Tdharris Technical User Oct 6, 2010 13 US Thanks Andy! It worked PERFECTLY! TDH Business App System Analyst Information Technology Upvote 0 Downvote