Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The problem is about VBA programming with pivot tables
created using OLAP cubes. I am using the following code to hide a row item of a pivot table created from an OLAP Cube. I get an error in the second line: ---------------------------------------- Run Time error 1004 Unable to set the visible property of the pivot item class ----------------------------------------- ------------ Worksheets("sheet1").PivotTables(1) _ ..PivotFields("[Project].[Project Name]").AutoSort xlManual, "[Project].[Project Name]" Worksheets("sheet1").PivotTables(1) _ ..PivotFields("[Project].[Project Name]").PivotItems ("[Project].[All Project].[ProjectA]").Visible = False ----------- This code works properly with pivot table created from excel sheet data but not with pivot tables created using OLAP cubes. I get this error whatever way I alter the visible property of a pivot item. This error can be reproduced easily by using the sample foodmart cube. I have already looked at Q114822 and the error appears even if I follow that guideline. Any ideas? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to create pivot table from existing pivot table in excel 2007 | Excel Discussion (Misc queries) | |||
Excel pivot tables - specific expand/collapse buttons visibility | Excel Discussion (Misc queries) | |||
Add-In Visibility | Excel Discussion (Misc queries) | |||
Copying values from pivot table to cells outside pivot table | Excel Discussion (Misc queries) | |||
How do I create a pivot table if the pivot table icon or menu ite. | Charts and Charting in Excel |