Slicer Macro defeats slicer functionality

dmcgimpsey

Active Member
Joined
Mar 30, 2004
Messages
268
Hi Team:

I have assigned a macro to a slicer object, but when I click on the slicer button, the macro executes but the slicer doesn't work.

To keep it simple, the slicer only has a msgbox("Slicer clicked")


My intention is to use slicers to run - and to then filter the raw data spreadsheet based on all the slicer settings - this lets the user export the raw data as they see fit. the data is in an excel table, which is not relevant to this issue, but it is best practice for multiple pivots and slicers

Thanks for your help - and I did check at least 20 posts and could not find an answer - i appreciate your help her.

Regards

Don
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I'm afraid that's just how it is. You should use an alternate trigger for your code, such as a pivottableupdate event.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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