Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jc jc is offline
external usenet poster
 
Posts: 164
Default PivotTable/Chart Filter on Click

I have a macro that creates a PivotTable and PivotChart and moves the
PivotChart to the Summary sheet. I would like to be able to click on a
hyperlink on the Summary sheet that would filter the column field on the
PivotTable on the Tables sheet, which would update the chart on the Summary
sheet.

For instance, if the chart user clicks on Medical Supplies, the column field
filter would clear everything except medical supplies. I know the code to
filter would look like this.

Sheets(€śTables€ť).Select
With ActiveSheet.PivotTables("PivotTable4").PivotFields ("Description")
.PivotItems("Sub-total M&O").Visible = False
.PivotItems("Drugs").Visible = False
.PivotItems("Sub Contracts").Visible = False
.PivotItems("Consumable Supplies").Visible = False

End With

I just need to know how to set it up so that the PivotItems will change on a
click. Maybe I need to set it up as an event, but I am not sure. Your help
is very much 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
How to show filter settings in Pivottable chart in Excel 2007? dNd BdN[_2_] Charts and Charting in Excel 2 September 18th 09 08:16 AM
Filter PivotTable dropdown items to match report filter Catherine D Excel Discussion (Misc queries) 1 August 16th 08 12:12 AM
PivotTable filter ordering Michael Anderson Excel Programming 0 February 14th 08 11:42 PM
Pivottable filter Looping through Excel Programming 6 December 7th 07 09:46 PM
Pivottable Filter excelrook Excel Discussion (Misc queries) 2 February 21st 07 08:34 PM


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