Slicers

MDLash

New Member
Joined
Jan 21, 2015
Messages
2
Can slicer selections be used as criteria for getpivotdata formulas? I am trying to present a report that looks cleaner than a filtered pivot table typically does. Any suggestions? Thanks!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
yes there is a way. But depends on how you want to use it!

I found the option to "Assign Macro" to the slicer, however my slicer has three buttons and I would like each button to display a different sort of the data. Unfortunately, I can only assign one macro to a slicer "box". Thoughts?
 
Upvote 0
No i don't think there is a way to assign the macro to different items in the slicer as slicer is a object put together and you will not be allowed to assign macro to different items in the slicer.

if you want to assign the macro to the buttons you can twist it by writing a macro in the below mentioned code, where the macro runs every time when there is a change in the cell value.

Private Sub Worksheet_Change(ByVal Target As Range)

Your Code

End Sub

Hope this works!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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