SlicerCache.VisibleSlicerItems property (Excel)

Returns a SlicerItems collection that contains the collection of all the visible items in the specified slicer cache. Read-only.

Syntax

expression.VisibleSlicerItems

expression A variable that represents a SlicerCache object.

Return value

SlicerItems

Remarks

The VisibleSlicerItems property is only applicable for slicers that are based on PivotTables based on workbook ranges or lists (SlicerCache.SourceType = xlDatabase).

Attempting to access the VisibleSlicerItems property for slicers that are connected to an OLAP data source (SlicerCache.OLAP = True) generates a run-time error.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.