Share via


SlicerCache.SortUsingCustomLists Property

Gets or sets whether items in the specified slicer cache will be sorted by the custom lists.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property SortUsingCustomLists As Boolean
    Get
    Set
'Usage
Dim instance As SlicerCache
Dim value As Boolean

value = instance.SortUsingCustomLists

instance.SortUsingCustomLists = value
bool SortUsingCustomLists { get; set; }

Property Value

Type: System.Boolean
true if items in the specified slicer cache will be sorted by the custom lists; otherwise, false.

Remarks

Read/write.

The SortUsingCustomLists property corresponds to the setting of the Use Custom Lists when sorting check box of the Slicer Settings dialog box. To access the custom lists associated with the current installation of Excel, click the File tab, click Options, click Advanced, and then click Edit Custom Lists under the General category.

The SortUsingCustomLists property only applies to slicers that are filtering non-OLAP data sources. Attempting to access this property from a slicer cache that is filtering an OLAP data source (SlicerCache.OLAP = true) generates a run-time error.

See Also

Reference

SlicerCache Interface

SlicerCache Members

Microsoft.Office.Interop.Excel Namespace