EndnoteOptions Property

Microsoft Word Visual Basic

object that represents the endnotes in a range or selection.

expression.EndnoteOptions

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets the starting number for endnotes in section two of the active document to one if the starting number is not one.

Sub SetEndnoteOptionsRange()
    With ActiveDocument.Sections(2).Range.EndnoteOptions
        If .StartingNumber <> 1 Then
            .StartingNumber = 1
        End If
    End With
End Sub