IRange.Sort Method
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Sort ( _
Key1 As Object, _
Order1 As XlSortOrder, _
Key2 As Object, _
Type As Object, _
Order2 As XlSortOrder, _
Key3 As Object, _
Order3 As XlSortOrder, _
Header As XlYesNoGuess, _
OrderCustom As Object, _
MatchCase As Object, _
Orientation As XlSortOrientation, _
SortMethod As XlSortMethod, _
DataOption1 As XlSortDataOption, _
DataOption2 As XlSortDataOption, _
DataOption3 As XlSortDataOption _
) As Object
'Usage
Dim instance As IRange
Dim Key1 As Object
Dim Order1 As XlSortOrder
Dim Key2 As Object
Dim Type As Object
Dim Order2 As XlSortOrder
Dim Key3 As Object
Dim Order3 As XlSortOrder
Dim Header As XlYesNoGuess
Dim OrderCustom As Object
Dim MatchCase As Object
Dim Orientation As XlSortOrientation
Dim SortMethod As XlSortMethod
Dim DataOption1 As XlSortDataOption
Dim DataOption2 As XlSortDataOption
Dim DataOption3 As XlSortDataOption
Dim returnValue As Object
returnValue = instance.Sort(Key1, Order1, _
Key2, Type, Order2, Key3, Order3, Header, _
OrderCustom, MatchCase, Orientation, _
SortMethod, DataOption1, DataOption2, _
DataOption3)
Object Sort(
Object Key1,
XlSortOrder Order1,
Object Key2,
Object Type,
XlSortOrder Order2,
Object Key3,
XlSortOrder Order3,
XlYesNoGuess Header,
Object OrderCustom,
Object MatchCase,
XlSortOrientation Orientation,
XlSortMethod SortMethod,
XlSortDataOption DataOption1,
XlSortDataOption DataOption2,
XlSortDataOption DataOption3
)
Parameters
- Key1
Type: System.Object
- Order1
Type: Microsoft.Office.Interop.Excel.XlSortOrder
- Key2
Type: System.Object
- Type
Type: System.Object
- Order2
Type: Microsoft.Office.Interop.Excel.XlSortOrder
- Key3
Type: System.Object
- Order3
Type: Microsoft.Office.Interop.Excel.XlSortOrder
- Header
Type: Microsoft.Office.Interop.Excel.XlYesNoGuess
- OrderCustom
Type: System.Object
- MatchCase
Type: System.Object
- Orientation
Type: Microsoft.Office.Interop.Excel.XlSortOrientation
- SortMethod
Type: Microsoft.Office.Interop.Excel.XlSortMethod
- DataOption1
Type: Microsoft.Office.Interop.Excel.XlSortDataOption
- DataOption2
Type: Microsoft.Office.Interop.Excel.XlSortDataOption
- DataOption3
Type: Microsoft.Office.Interop.Excel.XlSortDataOption
Return Value
Type: System.Object