Edit

Share via


Index.SortBy property (Word)

Returns or sets the sorting criteria for the specified index. Read/write WdIndexSortBy.

Syntax

expression. SortBy

expression Required. A variable that represents an 'Index' object.

Example

This example sets the first index in the current document to sort by the number of strokes.

ActiveDocument.Indexes(1).SortBy = _ 
 wdIndexSortByStroke

See also

Index Object

Support and feedback

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.