InsertAutoText

Syntax

InsertAutoText

Remarks

Attempts to match the current selection or the text before or surrounding the insertion point with an AutoText entry and insert the entry (including its formatting, if any). Word looks for the entry first in the active template, then in the Normal template, and finally in each loaded global template in the order listed in the Templates And Add-ins dialog box (File menu). If no match can be made, an error occurs.

See Also

AutoText, AutoTextName$(), CountAutoTextEntries(), EditAutoText, GetAutoText$(), SetAutoText