Word 2007 changed how autotext is presented to the user, though in practice it worked in much the same way as before, however the removal of auto-complete from that version rendered it less convenient; but there are still plenty of people using earlier versions, who wish to maintain lists of autotext entries. It is at those users that this page is aimed.
Word provides the mechanism to edit entries individually, but it is possible to maintain a list of autotext entries in a Word table and apply them to a Word template.
The list of entries is stored in a document containing a two column Word table, which is saved here with the name "D:\My Documents\Test\AutotextTable.doc".
The first column contains the autotext names. The second column contains the texts associated with those names.
The name and path of the document are unimportant as long as they are entered into the macros in place of the above name and path.
Autotexts in Word versions before 2007 are filed in Word according to the style that was attached to the text when the entry was created. If the entry contains the paragraph mark that terminates the entry (circled in red), it will be stored with the formatting that is associated with the applied style otherwise it is merely stored under the style name and when inserted adopts the formatting of the paragraph the text is inserted into. Manual formatting is retained in either instance.
The following macro loads the table document, reads each entry from the table, and enters it into the Normal template overwriting any existing autotext entry of the same name.
The following macro deletes from the Normal template the list of autotext entries stored in the table.
In the example above the first entry from the table is formatted in Heading 1 style and thus appears in the Heading 1 listing. When inserted, because the paragraph mark is included, the entry is formatted with the Heading 1 style thus:
In the case of the entry "text2" this does not include the paragraph mark so is formatted with the style of the paragraph into which it is inserted, but retains the manual formatting thus:
Autotext changed radically with Word 2007, being incorporated in a new system of Building Blocks. Nevertheless autotext remains part of the system and works much as before in the later versions.
This page, however, is aimed at Word versions before 2007.