LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,814
Default Automate Pivot Table to only 1 Item

I am trying to use the following code to clear all values in a Pivot table
except when it is "Need". However I do not know what may be entered into the
originating "Approval" field as several others use this spreadsheet. The
results appear in a ListBox and I only want "Need". in the below example
"David" may or may not be in the choices of the dropdown. I would like to
automate. Any help much appreciated.

With
Worksheets("Pivots").PivotTables("PivotTable3").Pi votFields("Approval")
.PivotItems("David").Visible = False
.PivotItems("Dean").Visible = False
.PivotItems("Fred").Visible = False
.PivotItems("FG").Visible = False
.PivotItems("Need").Visible = True
End With
 
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
Calculated Item in a Pivot Table Ed Excel Discussion (Misc queries) 2 June 21st 07 10:40 PM
if there an option allow me to appear the item in pivot table as . Hossam Excel Discussion (Misc queries) 1 April 4th 06 11:10 PM
Pivot Table Calculated Item SamBayer1957 Excel Discussion (Misc queries) 1 August 11th 05 10:27 PM
Automate Pivot Table Drill down tim Excel Worksheet Functions 0 April 5th 05 02:19 AM
Have a Pivot Table Include a "% of an item" [email protected] Excel Worksheet Functions 1 February 23rd 05 10:32 PM


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