Class Endnotes (Word VBA)

A collection of Endnote objects that represents all the endnotes in a selection, range, or document.

The classes Document, Range and Selection. give access to class Endnotes


Dim ends as Endnotes
Set ends = ActiveDocument.Range.Endnotes

For Each

Here is an example of processing the Endnotes items in a collection.


Dim end As Endnote
For Each end In ActiveDocument.Range.Endnotes
	
Next end

Methods

Add - Returns an Endnote object that represents an endnote added to a range.

Convert - Converts endnotes to footnotes.

Item - Returns an individual Endnote object in a collection.

ResetContinuationNotice - Resets the endnote continuation notice to the default notice.

ResetContinuationSeparator - Resets the endnote continuation separator to the default separator.

ResetSeparator - Resets the endnote separator to the default separator.

SwapWithFootnotes - Converts all endnotes in a document to footnotes and vice versa.

Properties

ContinuationNotice returns a Range object that represents the endnote continuation notice.

ContinuationSeparator returns a Range object that represents the endnote continuation separator.

Count returns a Long that represents the number of endnotes in the collection.

Location returns or sets the position of all endnotes. Read/write WdEndnoteLocation.

NumberingRule returns or sets the way endnotes are numbered after page breaks or section breaks.

NumberStyle returns or sets the number style.

Separator returns a Range object that represents the endnote separator.

StartingNumber returns or sets the starting note number, line number, or page number.