title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
SlicerCache.SortItems property (Excel) |
vbaxl10.chm897085 |
|
|
da8fd267-5c4d-c333-fb21-bb3c4305747c |
05/16/2019 |
medium |
Returns or sets the sort order of the items in the slicer. Read/write XlSlicerSort.
expression.SortItems
expression A variable that represents a SlicerCache object.
XlSlicerSort
The default setting of this property is xlSlicerSortAscending.
The SortItems property only applies to slicers that are based on PivotTables that are connected to workbook ranges or lists (SlicerCache.SourceType = xlDatabase).
Attempting to access the SortItems property for slicers that are connected to OLAP data sources (SlicerCache.OLAP = True) generates a run-time error. For OLAP data sources, use the SortItems property of the SlicerCacheLevel object instead.
[!includeSupport and feedback]