EndnoteOptions Object

Word Developer Reference

Represents the properties assigned to a range or selection of endnotes in a document.

Remarks

Use the EndnoteOptions property of the Range or Selection object to return an EndnoteOptions object.

Using the EndnoteOptions object, you can assign different endnote properties to different areas of a document. For example, you may want endnotes in the introduction of a long document to be displayed as lowercase Roman numerals, while in the rest of your document they are displayed as Arabic numerals. The following example uses the NumberingRule, NumberStyle, and StartingNumber properties to format the endnotes in the first section ofthe active document.

Visual Basic for Applications
  Sub BookIntro()
    Dim rngIntro As Range
'Sets the range as section one of the active document
Set rngIntro = ActiveDocument.Sections(1).Range

'Formats the EndnoteOptions properties
With rngIntro.EndnoteOptions
    .NumberingRule = wdRestartSection
    .NumberStyle = wdNoteNumberStyleLowercaseRoman
    .StartingNumber = 1
End With

End Sub

See Also