Index.SortBy property (Word)
Returns or sets the sorting criteria for the specified index. Read/write WdIndexSortBy.
expression. SortBy
expression Required. A variable that represents an 'Index' object.
This example sets the first index in the current document to sort by the number of strokes.
ActiveDocument.Indexes(1).SortBy = _
wdIndexSortByStroke
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.