VBA Slicers - select multiple items

Jonstrup

New Member
Joined
Feb 1, 2016
Messages
14
Hi all

Ok, this is doing my head in. Have been searching hi and low and I simply can't find the solution.

In excel 2010 i have a pivot table named Count1.

I have a set of slicers named Shift_types with about ten different items named randomly like "ShiftA", "DayOff", "Night", "Day", "WKND 6. week" etc.

What I am after is a via that can select pair and groups. For instance ShiftA and Night should be visible at the same time.

I would also want to combine DayOff with Night and "WKND 6. week".

Hop some one can help.

Thank you.

br
Kasper
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi Kasper,

I presume you know how to do this manually and are looking for an automated way to select saved combinations of items.

Just in case, I'll note that you can select multiple items from a slicer manually by holding down the Ctrl key. (Or Shift to select consecutive items).

I'm not aware of any built-in way to select saved pairs and groups. Potential workarounds include:

1. Adding another field that identifies these groups, then using a slicer for that field.
2. Using VBA to filter specified lists of PivotItems
 
Upvote 0
Hi Jerry

Thank you very much for the reply.

But yes, I am aware of how to do it manualy and this i for an automated version.

Even though I knew about the ctrl option to choose more than one slicer perhaps some one else can stumble across it and find it useful for their purpose.

br
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,783
Members
449,049
Latest member
greyangel23

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