Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 1.22 KB

Excel.SlicerCache.SortItems.md

File metadata and controls

42 lines (23 loc) · 1.22 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
SlicerCache.SortItems property (Excel)
vbaxl10.chm897085
vbaxl10.chm897085
Excel.SlicerCache.SortItems
da8fd267-5c4d-c333-fb21-bb3c4305747c
05/16/2019
medium

SlicerCache.SortItems property (Excel)

Returns or sets the sort order of the items in the slicer. Read/write XlSlicerSort.

Syntax

expression.SortItems

expression A variable that represents a SlicerCache object.

Return value

XlSlicerSort

Remarks

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]