We select Excel Table Sliders items through Cache object, and not Slider object. Why?

Jamualson

Board Regular
Joined
Feb 17, 2021
Messages
145
Office Version
  1. 2019
Platform
  1. Windows
sc: SlicerCache
s: Slicer

We use this way

With sCache
.SlicerItems("1").Selected = True
.SlicerItems("2").Selected = False
.SlicerItems("3").Selected = True
End With

and not this way:

With s
.SlicerItems("1").Selected = True
.SlicerItems("2").Selected = False
.SlicerItems("3").Selected = True
End With

My understanding currently:

- a table column can have a slicer cashe object attached to it
- if I create another SlicerItem from same cache, then it will look the same
- and I can set item selection through the SlicerCache, and not through the Slicer object itself

Is this 3 lines correct? And if yes, what is the function of creating multiple Slicer from same cache? It will just give the same output, so making 1 Slicer from 1 cache is the most you can do. When would it be useful to make more slicers from same cache?

Thank you very much for your answer, I am really confused about this. Have a nice day.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
The same Slicer object model applies for Pivot tables and regular tables so, while it probably doesn't make sense for a table, it is quite reasonable for pivot tables.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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