Syntax
InsertFootnote [.Reference = text] [, .NoteType = number]
Remarks
Inserts a footnote or endnote reference mark at the insertion point, opens the footnote or endnote pane, and places the insertion point in the pane. The arguments for the InsertFootnote statement correspond to the options in the Footnote And Endnote dialog box (Footnote command, Insert menu).
Argument | Explanation |
.Reference | A custom reference mark. If omitted, Word inserts an automatically numbered reference mark. To specify a symbol, use the syntax {FontName CharNum}. FontName is the name of a font containing 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 (W) at position 56 in the table of symbols in the Symbol font, include the argument .Reference = "{Symbol 87}". |
.NoteType | Specifies whether to insert a footnote or endnote: 0 (zero) Footnote 1 Endnote Omitted The type that was inserted most recently |
Example
This example inserts an automatically numbered footnote reference mark at the insertion point, inserts a footnote, and then closes the footnote pane:
InsertFootnote .NoteType = 0 Insert "Sara Levine, " Italic 1 : Insert "The Willow Tree" Italic 0 : Insert " (Lone Creek Press, 1993)." ClosePane
See Also
InsertAnnotation, NoteOptions, ViewFootnoteArea, ViewFootnotes