Microsoft KB Archive/211793

From BetaArchive Wiki

PSS ID Number: 211793

Article Last Modified on 4/21/2003



The information in this article applies to:

  • Microsoft Word 2000



This article was previously published under Q211793


IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry


SUMMARY

This article describes various methods for resetting user options and registry settings in Microsoft Word.

MORE INFORMATION

There are two basic kinds of options that a user can define in Word. The first kind affects the way the program operates. The information for this kind of option is usually stored in the Windows registry. The second kind of option affects the formatting or appearance of one or more documents. The information for this option is stored in templates or documents.

When you troubleshoot odd behavior in the program or in a document, first eliminate the possibility that the problem is caused by a combination of options and formatting. If the behavior in question occurs in multiple documents, it may be useful to reset the user settings to the "factory" defaults either temporarily or permanently. To do this, use one of the methods listed in the following table.

   Method                                                   Result
   ---------------------------------------------------------------------

   Hold SHIFT to prevent automatic macros from starting.    Temporary

   Start Word with the /a switch.                           Temporary

   Rename the Normal template.                              Temporary or
                                                            Permanent

   Run Detect and Repair.                                   Permanent

   Edit or delete registry entries.                         Permanent

Hold the SHIFT Key to Keep an Auto Macro from Running

Word reserves special names for macros that you can create to automatically alter the way Word behaves. These are called "auto" macros. The auto macros in Microsoft Word are listed in the following table.

   Macro      Storage location                Automatically Runs
   ---------------------------------------------------------------------

   AutoExec   In the Normal template          When Word is started
              or in a global add-in

   AutoNew    In a template                   When a new document that is
                                              based on the template is
                                              created

   AutoOpen   In document or template         When a document that is
                                              based on the template or that
                                              contains the macro is opened

   AutoClose  In document or template         When a document that is based
                                              on the template or that
                                              contains the macro is closed

   AutoExit   In the Normal template          When Word is quit
              or a global add-in

Word recognizes a macro with a name that begins with "Auto" as a macro that automatically runs when the situation to which it applies occurs. You can prevent an auto macro from running by holding SHIFT while performing the action that causes the macro to run.

To Start Word by Using the /a Switch

Starting Word by using /a on a command line causes Word to use the default settings for all options and prevents add-ons from being loaded.

The /a switch allows you to start Word without loading the following components:

  • The global template (Normal.dot)
  • Any add-in templates in the Startup folder
  • Any add-in libraries (.wll files)
  • Any COM Add-ins
  • User settings stored in the Data subkey in the Windows registry

NOTE: When you start Word with the /a switch, changes that you make in Word that affect any of these components are not written to the hard disk when you quit Word, and the changes are lost.

For the following example, assume that Word is located in the C:\Program Files\Microsoft Office\Office folder.

To start Word by using /a:

  1. Click Start, and then click Run.
  2. In the Run dialog box, click Browse.
  3. Use the Look in box to locate Winword.exe, and then select it. Click Open.

    This step fills in the Open box in the Run dialog box.
  4. In the Open box, move the insertion point after Winword.exe.

    NOTE: The path to the Winword.exe in the Run dialog box is enclosed in quotation marks. Be sure to move the insertion point to the right of the closing quotation mark.
  5. Type a space, and then type /a.

    The statement in the Open box should resemble the following:

    "C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\WINWORD.EXE" /A

If starting the program with the /a switch corrects the problem, use the following methods to further isolate the problem, or refer to the following Knowledge Base article:

244843 WD2000: What Does the Word Startup '/a' Switch Really Do?


To View Installed COM Add-ins

COM Add-ins can be installed in any location. To view the list of installed COM Add-ins, follow these steps:

  1. On the Tools menu, click Customize.
  2. Click the Commands tab.
  3. In the Category list, click Tools.
  4. Using the mouse, drag the COM Add-ins command to a toolbar.
  5. Click Close.
  6. Click the new button to view the Com Add-ins.

To Rename the Normal Template

To prevent formatting, AutoText, and macros that are stored in the Normal template (Normal.dot) from affecting behavior of the program and documents that are opened, rename Normal.dot. Renaming allows you to quickly determine whether the Normal template is causing the problem or behavior.

NOTE: Renaming the Normal.dot template resets several options back to the default settings, including custom styles, custom toolbars, macros, and AutoText entries. For this reason, Microsoft strongly recommends that you rename the Normal.dot file.

Certain kinds of configurations may create more than one Normal.dot file. These situations include cases in which multiple versions of Word are running on the same computer or cases in which several workstation installations exist on the same computer. In these situations, be sure to rename the correct copy of Normal.dot.

To rename the Normal.dot file, follow these steps:

  • Microsoft Windows 95, Microsoft Windows 98, or Microsoft Windows NT 4.0:

    1. Quit all instances of Word, including WordMail.
    2. Click Start, point to Find, and then click Files or Folders.
    3. In the Named box, type Normal.dot.
    4. In the Look in box, select your local hard disk drive (or an alternate user template location if you are running Word from a network server).
    5. Click Find Now to search for the file.
    6. For each occurrence of Normal.dot that appears in the Find dialog box, right-click the file. Click Rename on the shortcut menu. Give the file a new name, such as OldNormal.dot or Normal-1.dot.
    7. On the File menu, click Close to quit the Find program, and then restart Word normally (without using the /a switch).
    -or-
  • Microsoft Windows Millennium Edition (Me) or Microsoft Windows 2000:
    1. Quit all instances of Word, including WordMail.
    2. Click Start, point to Search, and then click Files or Folders.
    3. In the Search for Files or Folders Named box, type Normal.dot.
    4. In the Look in box, select your local hard disk drive (or an alternate user template location if you are running Word from a network server).
    5. Click Search Now to search for the file.
    6. For each occurrence of Normal.dot that appears in the Find dialog box, right-click the file. Click Rename on the shortcut menu. Give the file a new name, such as OldNormal.dot or Normal-1.dot.
    7. On the File menu, click Close to quit the Search program, and then restart Word normally (without using the /a switch).

    -or-

  • -or- Microsoft Windows XP Home Edition or Microsoft Windows XP Professional Edition:
    1. Quit all instances of Word, including WordMail.
    2. Click Start, click Search, and then click All Files or Folders.
    3. In the All or part of file name box, type Normal.dot.
    4. In the Look in box, select your local hard disk drive (or an alternate user template location if you are running Microsoft Word from a network server).
    5. Click Search Now to search for the file.
    6. For each occurrence of Normal.dot that appears in the Find dialog box, right-click the file, and then click Rename on the shortcut menu. Give the file a new name, such as OldNormal.dot or Normal-1.dot.
    7. On the File menu, click Close to quit Search, and then restart Word normally (without using the /a switch).

If Word starts correctly, you have resolved the problem. In this case, the problem is a damaged Normal.dot template. You may need to change a few settings to restore your favorite options. If the Normal.dot file that you renamed contains customizations, such as styles, macros, or AutoText entries that cannot be easily re-created, you may be able to copy those customizations from the old Normal.dot file to the new Normal.dot file by using the Organizer.

For more information about using the Organizer, click Microsoft Word Help on the Help menu, type Organizer in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

To Use Detect and Repair

Word now has the ability to detect and repair problems associated with Setup. This feature uses the Windows Installer to correct problems with missing files and to repair registry settings. This is equivalent to using the /f Setup command-line switch with the following options:

o - Reinstall a file if it is missing, or an older version if present.
c - Reinstall a file if it is missing or corrupted.
u - Rewrite all required user registry entries.
m - Rewrite all required local machine registry entries.
s - Reinstall all shortcuts, overwriting any existing shortcuts.


For example, the syntax for this switch is:

drive:\setup.exe /focums


There are three methods you can use to repair or reset Word files and values:

  • Use Detect and Repair from the Help menu.
  • Use Repair from Maintenance Mode.
  • Reinstall Word.

The following table lists the aggressiveness of each type of Detect and Repair, in the order of aggression.

   Aggression Level        Repair Process
   ---------------------------------------------------------

   Least Aggressive        Detect and Repair from Help menu
   Moderately Aggressive   Repair Word from Maintenance Mode
   Most Aggressive         Reinstall

To Use Detect and Repair on the Help Menu

You can access the Detect and Repair feature from the Help menu in Word. This option fixes and repairs errors in Word. All files, registry entries, and optional shortcuts for all Office 2000 programs are verified and repaired. This means that if you run Detect and Repair from within Word, all other Office 2000 programs are checked as well. This option only performs a checksum.

The Detect and Repair feature can also restore the Word program shortcuts on the Start menu. The Restore my shortcuts while repairing option must be selected for this to occur.

If Detect and Repair does not correct the problem, you may need to reinstall Word. The Reinstall option in the Maintenance Mode dialog box completes the same action as Detect and Repair, except that Reinstall copies down a file when the files are of equal versions. Detect and Repair does not copy over the file when the install file has the correct version and checksum.

NOTE: The Detect and Repair feature does not repair corrupted documents or a damaged Data key in the registry or the Normal template.

If a file that is required to start Word is missing, the Windows Installer automatically installs that file before starting the application.

To Repair Word in Maintenance Mode Setup

The Word Maintenance Mode Setup process is similar to that in earlier versions. It allows you to repair Word, add or remove features, and remove Word. The Repair Word feature is a new enhancement in Maintenance Mode that finds and fixes errors in a Word installation.

To start Maintenance Mode, follow these steps:

  1. Click Start, point to Settings, and then click Control Panel.


NOTE: In Windows XP Home Edition and Windows XP Professional Edition, click Start, and then click Control Panel.

  1. Double-click Add/Remove Programs.


In Windows XP Home Edition and Windows XP Professional Edition, click Add or Remove Programs.

  1. Select Word 2000 or Office 2000 from the list of programs, and then click Add/Remove.


NOTE: In Microsoft Windows 2000, Windows XP Home Edition, and Windows XP Professional Edition, click Word 2000 or Office 2000 on the list of programs, and then click Change or Remove.

You can access the Repair Word feature from the Maintenance Mode Setup dialog box by clicking Repair Word. The Repair Word feature allows you to do any of the following:

  • Reinstall Word the way it was installed originally.
  • Repair My Shortcuts. (This only repairs Windows Installer shortcuts, not shortcuts created by the user.)
  • Find and fix errors in the Office or Word 2000 installation. If this choice is selected, you have the option to Restore my shortcuts. This replaces any missing Word shortcuts on the Start menu.
  • Use Repair Word in Maintenance Mode Setup to check the version of the file and checksum.


Checksum is an error-detection scheme that involves creating a sum of the bits in a set of bytes of data and using that sum to later check for a change in the data.

To Save and Delete Registry Entries

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To Delete the Data Subkey

NOTE: Deleting the Data subkey resets several options back to the default settings, including the most recently used file list on the File menu and many settings you customize in the Options dialog boxes.

Most common options (click Options on the Tools menu) are stored in the Data subkey. One troubleshooting step is to delete the Data key. Word rebuilds this Data subkey by using the default settings the next time the program is started.

To delete the Data subkey:

  1. Quit all instances of Word, including WordMail.
  2. Click Start, and then click Run.
  3. In the Open box, type regedit, and then click OK.
  4. Locate the following subkey by double-clicking the appropriate folders:

    HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Data

  5. Select the Data folder on the left.
  6. On the Registry menu, click Export Registry File, type a file name, and then click Save.
  7. Click Delete on the Edit menu to delete the subkey.
  8. Click Yes when you are prompted to confirm the deletion.
  9. On the File menu, click Exit to quit the Registry Editor. Then restart Word normally (without using the /a switch).

If Word starts correctly, you have resolved the problem. The problem is a damaged Data subkey. You may need to change a few settings to restore your favorite options.

Where Settings Are Stored in the Registry

Word stores all of its settings in the Windows registry. This section lists the settings in the registry that pertain to Word.

The locations are organized into the following sections:

  • Main Locations of Word Settings
  • Word Subkey
  • Common Subkey
  • Shared Tools Subkey
  • To Use the RegOptions Macro
  • Alphabetical List of Options and Where They Are Stored

Main Locations of Word Settings

Most settings in Word are stored in the following subkey:

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word


Changes made to this HKEY_CURRENT_USER subkey are mirrored in the following subkey:

HKEY_USERS\Default\Software\Microsoft\Office\9.0\Word


The difference between the two locations is that first applies only to the current user of the system, and the other is the default for all users. However, Word entries are the same for both, so any change made to one is automatically reflected in the other.

NOTE: For the remainder of this section, all references to the HKEY_CURRENT_USER subtree apply also to the HKEY_USERS subtree except where noted.

Word Subkey

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word


The settings that you may need to examine during troubleshooting are located in this subkey. The Data subkey and the Options subkey are the most frequently changed areas.

Data Subkey

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Data


This subkey contains binary information for most recently used lists, including the most recently used file list and the most recently used address book list. It also contains Track Changes settings and Edit settings.

Options Subkey

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Options


This subkey stores the options that you can set from Word either by changing menu options or by running the RegOptions macro (see the "Using the RegOptions Macro" section later in this article).

The settings fall into two groups: default settings and optional settings. Default settings are established during Setup. You can change them by modifying options in Word.

Stationery Subkey

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Stationery


This subkey contains the default location for the template for WordMail and the links to find the template.

The four settings are the following:

   Cfg File Location    Sets the path to the WordMail folder
   Default Template     Sets the path to the template (by default,
                        Email.dot)
   DlgDefTpl            Shows a link to the default template
   Option               Shows a link to the default template

NOTE: These options may or may not be present.

Wizards Subkey

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Wizards


All wizard defaults are stored here. These settings are created the first time that you run a wizard.

Common Subkey

HKEY\CURRENT_USER\Software\Microsoft\Office\9.0\Common


This subkey is used by other Microsoft programs, such as the Office programs. Likewise, these settings are shared between programs. Changes made in one program's settings also appear in the other program's settings.

Shared Tools Subkey

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools


This subkey contains paths for all Windows utilities (programs such as Equation, WordArt, and MsGraph). Paths for graphics filters and text converters are also registered in this location.

To Use the RegOptions Macro

You can use the RegOptions macro to examine the Windows registry or to make changes to Word settings stored there.

For additional information about the RegOptions macro, click the article number below to view the article in the Microsoft Knowledge Base:

237356 WD2000: How to Access Sample Macros for Word 2000


Alphabetical List of Options and Where They Are Stored

NOTE: In the following table, "Template" refers to either the Normal.dot template or to a custom template.

   Setting name                    Storage location
   -----------------------------------------------------
   AutoCorrect-Formatted text      Normal.dot
   AutoCorrect-Shared Entries     .ACL files <user>.acl
   AutoSave Path                   Registry
   AutoText                        Template
   Company Name                    Winword.exe
   Custom Keystroke Assignments    Template
   Font Substitution               Registry
   Help for WP                     Registry
   Macros                          Template/Document
   Picture Editing                 Registry
   Print data forms                Document
   Snap to Grid                    Registry
   Styles                          Template/Document
   Toolbars                        Template/Document
   User Info                       Registry
   View Toolbars                   Template
   View/Toolbar                    Template

For additional information about options and where they are stored, click the article number below to view the article in the Microsoft Knowledge Base:

212242 WD2000: Where Settings Are Stored in the Registry


AutoCorrect lists are shared between Office programs. Any changes you make to the AutoCorrect entries and settings while in one program are immediately available to the other programs. In addition, Word can store AutoCorrect items that consist of formatted text and graphics.

Information about AutoCorrect is stored in various locations. These locations are listed in the following table.

   This AutoCorrect information                Is stored here
   ---------------------------------------------------------------------

   AutoCorrect entries shared by all          .acl file in the location
   programs                                    specified in the registry

   AutoCorrect entries used only by            Normal.dot
   Word (formatted text and graphics)

   AutoCorrect settings (correct two initial   Registry
   capitals, capitalize names of days,
   replace text as you type)

   AutoCorrect settings used only by           Registry
   Word (corrects accidental usage of CAPS
   LOCK key, capitalizes first letter of
   sentences)

Keywords: kbdta kbinfo KB211793
Technology: kbWord2000 kbWord2000Search kbWordSearch kbZNotKeyword2