Class EndnoteOptions (Word VBA)
The class EndnoteOptions represents the properties assigned to a range or selection of endnotes in a document. To use a EndnoteOptions class variable it first needs to be instantiated, for example
Dim eos as EndnoteOptions
Set eos = Selection.EndnoteOptions
Location
Returns or sets the position of all endnotes. Possible return values are wdEndOfDocument - At end of active document, wdEndOfSection - At end of current section.
ActiveDocument.Endnotes.Location = wdEndOfSection
NumberingRule
Returns or sets the way footnotes or endnotes are numbered after page breaks or section breaks. Possible return values are wdRestartContinuous - Numbers are assigned continuously, wdRestartPage - Numbers are reset for each page, wdRestartSection - Numbers are reset for each section.
ActiveDocument.Endnotes.NumberingRule = wdRestartSection
NumberStyle
Returns or sets the number style for the endnotes. Here you can find possible values for
Some of the WdNoteNumberStyle constants may not be available to you, depending on the language support (U.S. English, for example) that you've selected or installed.
Selection.EndnoteOptions.NumberStyle = wdNoteNumberStyleArabic
StartingNumber
Returns or sets the starting endnote number.
Selection.EndnoteOptions.StartingNumber =