Can i get a macro to run everytime i use a pivot table splitter?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,210
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone

I was wondering if anyone would know of a way I could get a macro to run when click on a pivot table splitter?

I'm use a chart and need a macro called "chrt" to rum so the parameters are correct?

I was wondering if there was a trigger in the sheet part of vba where you do the On Activate etc to say when pivot table is changed?

Tony
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi,

I assume you mean "slicer" rather than "splitter"?

If so, the Worksheet_PivotTableUpdate event appears to be triggered every time you make a change to the Pivot Table.

You can find a list of available events by going into the VB Editor for that worksheet, selecting Worksheet from the dropdown at the top left thn looking in the drop down at the top right to see what is available.

I just tried out all the Pivot Table ones. I expect there is a more scientific way. :)


Regards,
 
Upvote 0

Forum statistics

Threads
1,223,534
Messages
6,172,888
Members
452,486
Latest member
standw01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top