ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pivot Change event (https://www.excelbanter.com/excel-programming/299420-pivot-change-event.html)

Reney Langlois

Pivot Change event
 
Is there a way I can capture a pivot table selection
change event in code? I have a chart sitting on a
spreadsheet next to a pivot table and I'd like to update
the chart title automatically when someone chooses a
different category in one of the drop down lists in the
pivot table.

Debra Dalgleish

Pivot Change event
 
In a cell on the worksheet, enter a formula to create the title you
want. For example: ="Sales for " &B1
where cell B1 is the category in the pivot table.

Then, select the Title in the Pivot Chart
Type an equal sign, and click on the cell where you entered the formula
The formula bar will show something similar to: =Pivot!$E$1

When you change the category in cell B1, the chart title will change.

Reney Langlois wrote:
Is there a way I can capture a pivot table selection
change event in code? I have a chart sitting on a
spreadsheet next to a pivot table and I'd like to update
the chart title automatically when someone chooses a
different category in one of the drop down lists in the
pivot table.



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



All times are GMT +1. The time now is 12:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com