Compartilhar 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

Concepts

Index Object Members

Index Object