Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pivot table visibility

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?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create pivot table from existing pivot table in excel 2007 Udayraj Dhulekar Excel Discussion (Misc queries) 2 July 8th 13 08:22 PM
Excel pivot tables - specific expand/collapse buttons visibility MichaƂ Lenartowicz Excel Discussion (Misc queries) 1 October 19th 09 09:48 AM
Add-In Visibility Trent Argante Excel Discussion (Misc queries) 5 February 13th 08 08:01 PM
Copying values from pivot table to cells outside pivot table richzip Excel Discussion (Misc queries) 4 January 16th 08 11:03 PM
How do I create a pivot table if the pivot table icon or menu ite. Lynn@WS Charts and Charting in Excel 1 December 16th 04 02:36 AM


All times are GMT +1. The time now is 05:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"