I run a series of macros which open workbooks, manipulate the pivot tables therein, and bring the data into another workbook, wherin the data is massaged and then a pivot table is created. With my code below I turn off what I don't want to see. However, if one of the items I list as "Visible = False" doesn't appear in the list of PivotItems, the code fails with an error code 1004, "Unable to get the PivotItems property of the PivotFields class". How do I configure it so that if the pivot item doesn't exist just ignore it?Please Login or Register to view this content.
Bookmarks