Share via


Endnotes.Add Method

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

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Add ( _
    Range As Range, _
    ByRef Reference As Object, _
    ByRef Text As Object _
) As Endnote
'Usage
Dim instance As Endnotes
Dim Range As Range
Dim Reference As Object
Dim Text As Object
Dim returnValue As Endnote

returnValue = instance.Add(Range, Reference, _
    Text)
Endnote Add(
    Range Range,
    ref Object Reference,
    ref Object Text
)

Parameters

  • Reference
    Type: System.Object%
    Optional Object. The text for the custom reference mark. If this argument is omitted, Microsoft Word inserts an automatically-numbered reference mark.
  • Text
    Type: System.Object%
    Optional Object. The text of the endnote.

Return Value

Type: Microsoft.Office.Interop.Word.Endnote

Remarks

To specify a symbol for the Reference argument, use the syntax {FontName CharNum}. FontName is the name of the font that contains the symbol. Names of decorative fonts appear in the Font box in the Symbol dialog box (Insert menu). CharNum is the sum of 31 and the number corresponding to the position of the symbol you want to insert, counting from left to right in the table of symbols. For example, to specify an omega symbol (ω) at position 56 in the table of symbols in the Symbol font, the argument would be "{Symbol 87}".

See Also

Reference

Endnotes Interface

Endnotes Members

Microsoft.Office.Interop.Word Namespace