Returns or sets the text between alphabetic groups (entries that start with the same letter) in the index. Corresponds to the \h switch for an INDEX field. Read/write WdHeadingSeparator.
WdHeadingSeparator can be one of these WdHeadingSeparator constants. |
wdHeadingSeparatorBlankLine |
wdHeadingSeparatorLetterFull |
wdHeadingSeparatorNone |
wdHeadingSeparatorLetter |
wdHeadingSeparatorLetterLow |
expression.HeadingSeparator
expression Required. An expression that returns one of the objects in the Applies To list.
Example
This example formats the first index for the active document in a single column, with the appropriate letter preceding each alphabetic group.
If ActiveDocument.Indexes.Count >= 1 Then
With ActiveDocument.Indexes(1)
.HeadingSeparator = wdHeadingSeparatorLetter
.NumberOfColumns = 1
End With
End If