Share via


ISortFields.Add Method

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

Syntax

'Declaration
Function Add ( _
    Key As Range, _
    SortOn As Object, _
    Order As Object, _
    CustomOrder As Object, _
    DataOption As Object _
) As SortField
'Usage
Dim instance As ISortFields
Dim Key As Range
Dim SortOn As Object
Dim Order As Object
Dim CustomOrder As Object
Dim DataOption As Object
Dim returnValue As SortField

returnValue = instance.Add(Key, SortOn, _
    Order, CustomOrder, DataOption)
SortField Add(
    Range Key,
    Object SortOn,
    Object Order,
    Object CustomOrder,
    Object DataOption
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Excel.SortField

See Also

Reference

ISortFields Interface

ISortFields Members

Microsoft.Office.Interop.Excel Namespace