Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Hiding data in pivot tables

I am trying to alter the data items that are displayed inside a pivot table.
This hides everything except the first item - but it recalculates the table
after everytime it changes one of the properties. I would like to stop this
so that there is only one recalculation made when all of the properties have
been set.

For i = 2 To j
ActiveSheet.PivotTables("PivotTable3").PivotFields ("Invoice
Date").PivotItems.Item(i).Visible = False
Next

I would also like a bit of code that is equivalent to ticking the "(show
all)" box in the drop down list on the pivot table.

Any help appreciated
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Hiding data in pivot tables

Turn on the macro recorder while you tick ShowAll.

--
Regards,
Tom Ogilvy

"rikky" wrote in message
...
I am trying to alter the data items that are displayed inside a pivot

table.
This hides everything except the first item - but it recalculates the

table
after everytime it changes one of the properties. I would like to stop

this
so that there is only one recalculation made when all of the properties

have
been set.

For i = 2 To j
ActiveSheet.PivotTables("PivotTable3").PivotFields ("Invoice
Date").PivotItems.Item(i).Visible = False
Next

I would also like a bit of code that is equivalent to ticking the "(show
all)" box in the drop down list on the pivot table.

Any help appreciated



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
Pivot tables - Editing the data source shared by multiple pivot ta sankat Excel Discussion (Misc queries) 1 April 22nd 10 03:05 PM
Pivot Table Data Adding contents of two pivot tables and param que Roundy Excel Discussion (Misc queries) 0 July 2nd 07 10:20 PM
Average Calculations from Pivot Tables - Get Pivot Data? Calc Fiel westy Excel Worksheet Functions 5 March 10th 07 01:31 AM
Hiding rows containing zeroes or blanks in pivot tables? ChrisBusch Excel Discussion (Misc queries) 2 June 2nd 05 03:01 AM
About Hiding Fields in Pivot Tables bay Excel Discussion (Misc queries) 1 January 27th 05 01:51 PM


All times are GMT +1. The time now is 12:05 PM.

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

About Us

"It's about Microsoft Excel"