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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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