SlicerCache.SlicerCacheType (Excel)

Returns the type of the slicer cache: slicer (xlSlicer) or timeline (xlTimeline) .

xlSlicer - Slicer cache represents a Slicer, xlTimeline - Slicer cache represents a Timeline.
Dim xscSlicerCacheType As XlSlicerCacheType
xscSlicerCacheType = ActiveWorkbook.SlicerCaches(1).SlicerCacheType
SlicerCache.SlicerCacheType procedure builder