Index.SortBy Property

Word Developer Reference

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.

Visual Basic for Applications
  ActiveDocument.Indexes(1).SortBy = _
    wdIndexSortByStroke

See Also