LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default Pivottable filter

Is there a way to filter a pivot table list based on a cell range within the
sheet?

This is what I have

Sub Macro12()
With ActiveSheet.PivotTables("WON").PivotFields("Month Won")
.PivotItems("1").Visible = False
.PivotItems("2").Visible = False
.PivotItems("3").Visible = False
.PivotItems("4").Visible = False
.PivotItems("5").Visible = False
.PivotItems("6").Visible = False
.PivotItems("7").Visible = False
.PivotItems("8").Visible = False
.PivotItems("9").Visible = False
.PivotItems("10").Visible = False
.PivotItems("11").Visible = False
.PivotItems("12").Visible = True
.PivotItems("(blank)").Visible = False
End With
End Sub

In this paticular case I am hiding all the options except "12", which
happens to correspond with the current month we are in. Can I just have the
pivot table look at cell "A2" and filter out all the extra criteria in that
column except what is specified in cell "A2"?

Any help is greatly apprechiated.
Peter
 
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
Display all pivottable filter selections AudKen Excel Worksheet Functions 0 October 28th 08 06:28 PM
Filter PivotTable dropdown items to match report filter Catherine D Excel Discussion (Misc queries) 1 August 16th 08 12:12 AM
PivotTable Date Filter External Value Hutch Excel Discussion (Misc queries) 0 June 18th 08 04:13 AM
Report Filter in PivotTable Hutch Excel Discussion (Misc queries) 1 May 30th 08 08:35 PM
Pivottable Filter excelrook Excel Discussion (Misc queries) 2 February 21st 07 08:34 PM


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