Syntax
AutoTextName$(Count [, Context])
Remarks
Returns the name of an AutoText entry in the specified context.
Argument | Explanation | |
Count | The number of the AutoText entry, from 1 to the total number of AutoText entries defined in the given context (you can obtain the total using CountAutoTextEntries()). AutoText entries are listed | |
Context | The context in which to return the name of an AutoText entry: 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, AutoTextName$() generates an error. |
Example
This example creates a new document that lists all AutoText entries in the Normal template and any loaded global templates. Entry names are inserted with bold formatting and are followed by the contents of the entry.
FileNewDefault For count = 1 To CountAutoTextEntries() a$ = AutoTextName$(count) Bold 1 : Insert a$ InsertPara Bold 0 : EditAutoText .Name = a$, .Insert InsertPara : InsertPara Next
See Also
AutoText, CountAutoTextEntries(), EditAutoText, GetAutoText$(), InsertAutoText, SetAutoText