Table.SortDescending Method
Word Developer Reference |
Sorts table rows in descending alphanumeric order.
Syntax
expression.SortDescending
expression Required. A variable that represents a Table object.
Remarks
The first table row is considered a header record and isn't included in the sort. Use the Sort method to include the header record in a sort.
This method offers a simplified form of sorting intended for mail-merge data sources that contain columns of data. For most sorting tasks, use the Sort method.
Example
This example creates a 5x5 table in a new document, inserts text into each cell, and then sorts the table in descending alphanumeric order.
Visual Basic for Applications |
---|
|
This example sorts the table that contains the insertion point in descending alphanumeric order.
Visual Basic for Applications |
---|
|
See Also