Share via


PivotTable.SortUsingCustomLists Property

The SortUsingCustomLists property controls whether custom lists are used for sorting items of fields, both initially when the PivotField is initialized and the PivotItems are ordered by their captions; and later when the user applies a sort. Read/write.

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 PivotTable
Dim value As Boolean

value = instance.SortUsingCustomLists

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

Property Value

Type: System.Boolean
Boolean

Remarks

Setting this property to False can optimize performance for fields with many items, and it also allows users who do not want custom list-based sorting to avoid it.

See Also

Reference

PivotTable Interface

PivotTable Members

Microsoft.Office.Interop.Excel Namespace