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


Hi all,

within a (Excel 2000) pivot table, I'd like to hide all items except of
one, which is named 'Total'.
The item list can change, so hiding item by item does not work.The
function could look like:

..PivotItem.Visible = False
..PivotItem("Total").Visible = True

I am looking for a function to hide all items at once. Any ides?

Best regards & thanks for help,
the Excelgeek


--
Excelgeek
------------------------------------------------------------------------
Excelgeek's Profile: http://www.excelforum.com/member.php...o&userid=24285
View this thread: http://www.excelforum.com/showthread...hreadid=378940

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default PivotItem.Visible

There's no "HideAll" method, but there's sample code here to loop
through the list and hide or show items:

http://www.contextures.com/xlPivot03.html

Excelgeek wrote:
Hi all,

within a (Excel 2000) pivot table, I'd like to hide all items except of
one, which is named 'Total'.
The item list can change, so hiding item by item does not work.The
function could look like:

PivotItem.Visible = False
PivotItem("Total").Visible = True

I am looking for a function to hide all items at once. Any ides?

Best regards & thanks for help,
the Excelgeek




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default PivotItem.Visible

Take a look at Debra Dalgleish's code:

http://www.contextures.com/xlPivot04.html
look for: Sub DeleteOldItemsWB()


She deletes items (instead of .visible = false), but that's easy to change.



Excelgeek wrote:

Hi all,

within a (Excel 2000) pivot table, I'd like to hide all items except of
one, which is named 'Total'.
The item list can change, so hiding item by item does not work.The
function could look like:

PivotItem.Visible = False
PivotItem("Total").Visible = True

I am looking for a function to hide all items at once. Any ides?

Best regards & thanks for help,
the Excelgeek

--
Excelgeek
------------------------------------------------------------------------
Excelgeek's Profile: http://www.excelforum.com/member.php...o&userid=24285
View this thread: http://www.excelforum.com/showthread...hreadid=378940


--

Dave Peterson
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
PivotItem positioning... Jesterhoz[_2_] Excel Programming 1 May 27th 05 02:26 AM
How to add a PivotItem ? sharprog Excel Programming 2 July 16th 04 04:39 PM
how to set pivotitem.visible property to true kanan Excel Programming 0 February 25th 04 08:06 PM
How can I set PivotItem.Visible property to True? yumi Excel Programming 2 February 19th 04 11:51 AM
Pivotitem count Jesse[_4_] Excel Programming 3 December 28th 03 09:19 PM


All times are GMT +1. The time now is 08:41 AM.

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"