GetAutoText$()

Syntax

GetAutoText$(Name$ [Context])

Remarks

Returns the unformatted text of the specified AutoText entry.

Argument

Explanation

Name$

The name of the AutoText entry

Context

Where the AutoText entry is stored:

0 (zero) or omitted Normal template and any loaded global templates

1 Active template

Note that if Context is 1 and the active template is the Normal template, GetAutoText$() returns an empty string ("").


Example

This example displays a message box containing the text of the AutoText entry named "Welcome," which is stored in the active template:


MsgBox GetAutoText$("Welcome", 1)

See Also

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