|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Slicers Object (Excel)
A collection of Slicer objects.
Use the Slicers property to return the Slicers collection. The following code example displays the number of slicers in the first slicer cache in the workbook.
Use Slicers(index), where index is the slicer index number or name, to return a single Slicer object from the slicers collection. The following code example changes the caption for the first slicer in the first slicer cache to "My Slicer".