Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Hide all items in Pivot Field except specific items

Howdy:

My workbook contains about ten tabs, each with one or two pivot tables.
Each table has a field (called "SP") listing about 50 salespeople. The list
varies periodically based on the source data.

Thanks to this community, I have a macro to successfully select a single
name in each table.

However, now I need a way to deselect All items, then select only 4
particular salespeople in each table.

Ideas, please? BTW, I run Excel 2007, but have to save files in 97/2003.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Hide all items in Pivot Field except specific items

Hi
Make everything invisible then make the ones you want visible

e.g
Dim PI as PivotItem
With .PivotFields("MYFIELD")
For Each PI In .PivotItems
PI.Visible = False
Next PI
.PivotItems("Item1").Visible = True
.PivotItems("Item2").Visible = True
.PivotItems("Item3").Visible = True
.PivotItems("Item4").Visible = True
End With

regards
Paul

On Jun 18, 8:21*pm, VAMS wrote:
Howdy:

My workbook contains about ten tabs, each with one or two pivot tables. *
Each table has a field (called "SP") listing about 50 salespeople. *The list
varies periodically based on the source data.

Thanks to this community, I have a macro to successfully select a single
name in each table.

However, now I need a way to deselect All items, then select only 4
particular salespeople in each table. *

Ideas, please? * BTW, I run Excel 2007, but have to save files in 97/2003.

Thank you.


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
Filter Items from a Pivot Field Allen Excel Programming 2 November 26th 08 05:43 PM
SORT List Items in Pivot field [email protected] Excel Worksheet Functions 1 September 12th 06 06:50 PM
Pivot Table - untick all items in row field DD1 Excel Discussion (Misc queries) 6 May 3rd 06 07:17 PM
Fast way to hide all pivot items in VBA? Air_Cooled_Nut[_9_] Excel Programming 2 January 17th 06 03:38 PM
Auto Hide Pivot Table Items lpolliard Excel Programming 1 October 9th 03 09:34 AM


All times are GMT +1. The time now is 07:49 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"