Field codes: AutoTextList field

Microsoft Office Word 2003

"Literal Text"
Text that displays in the document before the user displays the shortcut menu. If the text contains spaces, enclose it in quotation marks.
"Stylename"
The name of the style of the AutoText entries that you want to appear in the list. The style can be a paragraph style or a character style. If the style name contains spaces, enclose it in quotation marks.
"Tip text"
Text that displays in the ScreenTip when the mouse pointer hovers over the field result. Enclose the text in quotation marks.

ShowSwitches

\s
Specifies that the list will contain entries based on a specific style. Without this switch, AutoText entries of the current paragraph style appear. If there are no entries for the current style, all AutoText entries appear.
\t
Specifies unique text to show in the ScreenTip instead of the default tip.

ShowExample

{ AUTOTEXTLIST "List of salutations" \s Salutation \t "Choose a salutation" } displays the following:
  • In the document: Salutation list
  • In the ScreenTip: Choose a salutation
  • On the shortcut menu: the list of AutoText entries whose style is Salutation.