Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.
With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company.
Learn more about Allen...
Nathan finds it bothersome to continually display the AutoText tab of the AutoCorrect dialog box when he wants to edit a series of AutoText entries. He is wondering if there is perhaps some file or different way that he can make wholesale edits to the entries.
AutoText entries are stored in templates, most often in the Normal template. There is no special file that you can load up and edit directly. Instead, you need to use the tools that Word has provided for the purpose.
If all you need to do is delete a number of AutoText entries, one tool that will make the task easier is the Organizer. Follow these steps:
Figure 1. The Templates and Add-ins dialog box.
Figure 2. The AutoText tab of the Organizer.
Another way to delete lots of AutoText entries is to use a macro. The following macro provides a simple way to step through each AutoText entry and make a decision as to whether you want to delete it or not.
Sub DeleteAutoTextEntries() Dim I As AutoTextEntry Dim vAnswer As Variant For Each I In NormalTemplate.AutoTextEntries vAnswer = MsgBox("Delete AutoText Entry" & vbCr _ & "Name: " & I.Name & vbCr _ & "Value: " & I.Value, vbYesNoCancel, _ "Delete AutoText Entries") Select Case vAnswer Case vbYes I.Delete Case vbCancel Exit Sub End Select Next I End Sub
The macro assumes that the AutoText entries are in the Normal.dot template; if you have them in a different template, you can change the NormalTemplate reference so that a different template is used. The macro displays, in a dialog box, each AutoText entry and you have the chance to delete it or not. You can also click the Cancel button (or press Esc) and the macro is ended right away.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (325) applies to Microsoft Word 97, 2000, 2002, and 2003.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!