'Declaration Public Function SortRange( _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal rowCount As Integer, _ ByVal columnCount As Integer, _ ByVal byRows As Boolean, _ ByVal sortInfo() As SortInfo _ ) As Boolean
Parameters
- row
- The index of the starting row of the block of cells to sort.
- column
- The index of the starting column of the block of cells to sort.
- rowCount
- The number of rows in the block of cells.
- columnCount
- The number of columns in the block of cells.
- byRows
- Set to
trueto sort by rows; false to sort by columns. - sortInfo
- The SortInfo object with sort criteria and information about how to perform the sort.
Return Value
true if the data is successfully sorted; otherwise, false.