Menus for AutoText (supplemental chapter)
What You Will Learn
After completing this lesson, you will be able to:
Additional Written (and Web) Resources
Create a Custom Menu to hold your AutoText Entries (Word 97-2003)*
There are (at least) two ways to do this, neither of which involve macros or VBA. The first method requires use of styles in both the creation and implementation of the AutoText entries. The second method require using the Customize... dialog under the Tools menu to create your menu. Once created, this menu works like any other Word menu. Both methods are demonstrated by the AutoText Sampler download. Both methods are intended for creation of a menu in a document template or global template; they will be used in your documents and templates. A custom Word menu is demonstrated in the Gender Toolbar template which has numerous fields saved as AutoText entries that are accessible from a custom menu.
Use the AutoText Entries drop down box (built-in field) in your text as a field
This method involves use of Paragraph styles in both the creation and use of the AutoText. Unless a paragraph mark is a part of the AutoText entry, the style in which the entry is created will have no effect on the formatting of the inserted text. It will, however, change the category under which the entry is classified by Word.
Creating your AutoText Entries so they will be placed in a category by Word.
To create the entries for your list, type them in a document where they would normally be used. This document should be based on a template other than Normal.dot. Then select a potential grouping of text that you want to fit into a particular category. For this exercise, be sure that the text does not include a paragraph mark. Go to the Format menu and select Style...
A dialog box will pop up with your current style selected. Unless you have already created a style for this kind of entry, click on the New button. This will pop up another dialog box for the creation of a new style. Give your new style a name, i.e., "z Interrogatories - AutoText." The "z" is in the name to put it at the end of most Styles lists; the "AutoText" tag is to indicate the style's function.
Click on OK to close the New Style dialog box. Note that we didn't make any changes to the style, nor did we check the box about saving it to the template, we just gave it a name. That name will become the AutoText category for entries of this type. Click on the Apply button so that your current entry will be formatted using this style.
Then call up the AutoText dialog box.
Tools menu -> AutoCorrect -> AutoText (tab)
Change the box at the bottom so that it says: Look In: your template's name. What you want here is the name of the template on which your document is based, not "All available templates," or "Normal.dot."
Click on the Add button to add your entry. Choose a name for your entry so that it will be clearly identifiable when you use it. (i.e., pid Expert - treating physician)
Then select the other text that you want to use for entries, one word, sentence or paragraph (without the paragraph mark) at a time. Change the paragraph style of each paragraph to that of your category style and add the autotext entry, each time checking to make sure that it is being saved in your template.
At this point, close your document, without saving the changes to the document but saving changes to the attached template. You are now ready to create a drop down AutoText list based on the entries you just made.
You can include paragraph marks in your AutoText entries but if you do this, your text in that paragraph will maintain its style. If the style already exists in the document, it will use the style definition already in place. If the style does not exist, it will be imported. See the IncludeText field tutorial for examples of the sorts of result you will get.
Creating the drop-down AutoText list
Use File -> New and create a new template based on the template to which you just added the AutoText. (Click radio button for "New Template" instead of "New Document" in the bottom-right corner of the dialog box.)
(more to be written here)
The text in teal which which follows is from the Word 2000 help screen on inserting a drop down field for AutoText:
* For Word 2007-2013 (365) an easier way to categorize AutoText may be to put it in separate custom galleries. See Greg Maxey's site for more on this.
Build your own custom menu(s) of AutoText entries by creating a toolbar
First, I would recommend creating a new template to hold your AutoText and your toolbars. Then copy your AutoText entries to that template using the Organizer.
(Tools | AutoCorrect | AutoText (Tab) | Organizer (Button))
Second, use the Tools | Customize... command. Make sure that the template in which the customizations are to be stored is the template you want.
Third, create a new custom toolbar to hold your menu(s). This is done under the Toolbars tab of the Customize dialog box.
Fourth, click on the second tab (commands) and scroll all the way to the bottom of the list on the left. You will find "New Menu." Select "New Menu" from the list on the _right_ (it's the only thing on that list) and drag it to your new toolbar. Right-click on it and change the name to whatever you want it to be.
Fifth, one of the other categories of commands which can be added to a menu is "AutoText." Click on that (left box) and then drag the autotext entries you want to use (right box) onto your menu.
Sixth, once you have your menu(s) on your custom toolbar, close the Customize dialog box and save your template.
Seventh, open the Customize dialog box again if you want your menu to appear under the Tools or Insert (or any other built-in) menu. Holding the Cntrl key down, drag your menu to the built-in menu you want to use. Close the dialog and save again.
Eighth, save your template as a global. There are a number of ways to do this. Those ways and more on templates can be found at: http://www.addbalance.com/usersguide/templates.htm.
It is important to build the custom toolbar and to keep the custom menus on that toolbar even if they are going to be used in the built-in menus. This is because you can use the Organizer to copy custom toolbars but not to move customizations of the built-in menus. If you ever do move this toolbar to another template, be sure to move the autotext entries first.
See Moving / Copying / Sharing customizations for information on putting toolbars like this in a global template so that they are available in all of your documents.
Note, beginning with Word 2007, a better method would be to create a custom Building Blocks Gallery to share your AutoText. See Building Blocks & AutoText for more on this. The templates for this can be stored in the Word Startup Folder, the Office Startup folder, or the Building Blocks folder. If they contain QAT modifications to access the gallery, though, they must be stored in one of the Startup folders.