Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using Code to show all pivot items
I have a pivot table called "Relationship" contained within the
worksheet "Relationship Table" which contains a column field called "Order No" where individual pivot items for this column can be hidden. I am trying to write code to automatically show all of the pivot items. When I use the following ShowAllItems command nothing happens. Why? ThisWorkbook.Worksheets("Relationship tables").PivotTables("Relationship").PivotFields(" Order No").ShowAllItems = True I have also tried to use the following statement in an array to set each item to visible but that causes me to get the "Run-time error '1004' Unable to set property of the Pivot Item class" error. What is really frustrating is that I can use this statement to set the pivot item visible to false but not to true. ThisWorkbook.Worksheets("Relationship tables").PivotTables("Relationship").PivotFields(" Order No")..PivotItems(i).Visible = True Any help given would be greatly appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
copy and use vba code | Excel Discussion (Misc queries) | |||
Pivot Chart - show 1 row value, but also showing percentage of who | Charts and Charting in Excel | |||
Pivot Table using "LIKE" code | Excel Worksheet Functions | |||
How to show data greater than 10 in pivot table | Excel Discussion (Misc queries) | |||
Pivot Table - Group by Month - Show Items with no data | Excel Discussion (Misc queries) |