Compartilhar via


Index.HeadingSeparator Property

Word Developer Reference

Returns or sets the text between alphabetical groups (entries that start with the same letter) in the index. Corresponds to the \h switch for an INDEX field. Read/write WdHeadingSeparator.

Syntax

expression.HeadingSeparator

expression   Required. A variable that represents an Index object.

Example

This example formats the first index for the active document in a single column, with the appropriate letter preceding each alphabetical group.

Visual Basic for Applications
  If ActiveDocument.Indexes.Count >= 1 Then
    With ActiveDocument.Indexes(1)
        .HeadingSeparator = wdHeadingSeparatorLetter
        .NumberOfColumns = 1
    End With
End If

See Also