Muokkaa

Jaa


SlicerCacheLevels object (Excel)

Represents the collection of hierarchy levels for the OLAP data source that is filtered by a slicer.

Remarks

When a slicer is used to filter an OLAP data source, its parent slicer cache can contain multiple hierarchy levels from the data source.

Use the SlicerCacheLevels collection of the parent SlicerCache object to access the SlicerCacheLevel objects that represent these hierarchy levels. This collection is not accessible for non-OLAP data sources.

Example

The following code example retrieves a SlicerCacheLevel object that represents the Country level of the Customer Geography hierarchy from the SlicerCacheLevel collection of the Country slicer.

ActiveWorkbook.SlicerCaches("Slicer_Customer_Geography"). _ 
 SlicerCacheLevels("[Customer].[Customer Geography].[Country]")

Properties

See also

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.