Hello,
I have a created a pivot table. The data source is an Excel sheet in the same workbook. I set it form A1 to F300. I do not want to show the (blank) item in the pivot table so I unchecked that box. So far so good. But now if I enter a date in the data source the pivot table does not show that either. So I wrote a small macro:
If I have that loop active I get the error "Unable to set the Visible property of the PivotItem class".
Is there anything wrong with that code? I replaced .PivotItems("(blank)") with several other values of the PivotItems list (e.g. .PivotItems("4/1/2013") )and get the same error. Only .PivotItems("(blank)") works.
Any ideas? I googled that problem already but did not find a solution.
Regards,
Michael
Bookmarks