Microsoft KB Archive/247028

From BetaArchive Wiki
Knowledge Base


A corrupt global template causes errors when automating Word

Article ID: 247028

Article Last Modified on 4/19/2007



APPLIES TO

  • Microsoft Office Word 2007
  • Microsoft Office Word 2003
  • Microsoft Word 2002 Standard Edition
  • Microsoft Word 2000 Standard Edition
  • Microsoft Word 97 Standard Edition
  • Microsoft Word 95a
  • Microsoft Word 95 Standard Edition



This article was previously published under Q247028

SUMMARY

One or more invalid global template files may cause an out-of-process automation client to throw one of the following error messages:

HRESULT: 0x8001010A
VB Error: -2147417846
"The message filter indicated that the application is busy"

HRESULT: 0x800A175D
VB Error: 5981
"Cannot open macro storage"

HRESULT: 0x800A142D
VB Error: 5165
"Word cannot open the existing [square]"

MORE INFORMATION

The global template file that is used by Word might be corrupt.

Note In Microsoft Office Word 2007, the global template is named Normal.dotm. In Microsoft Office Word 2003 and in earlier versions of Word, the global template is named Normal.dot.

If you are encountering one of the errors described in the Summary section, you can temporarily rename the global template to determine if it is the cause of the problem.

Renaming the global template resets several options back to their default settings, including custom styles, custom toolbars, macros, and AutoText entries. It is strongly recommended that you rename the global template file rather than deleting it, so that you can restore these settings if the template is not corrupt.

Certain installations of Word may yield more than one legitimate global template file. These situations include multiple versions of Word running on the same computer or several user profiles on the same computer. In these situations, pay special attention so that you rename the correct copy of Normal.dot.

To rename the global template file follow these steps.

Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.

  1. Quit all instances of Word, including WordMail.
  2. Click Start, clickFind, and then click Files or Folders.
  3. In the Named box, type the global template name for your version of Word.
  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 global template that appears in the Find dialog box, right-click the file and then click Rename. Give the file a new name, such as OldNormal.dot or Normal-1.dot.
  7. Minimize the Find dialog box.
  8. Restart your automation client to start Word.


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

If your toolbar customizations are stored in a custom toolbar, you should be able to copy them using the Organizer. Unfortunately, if the customizations were made to one of Word's built-in toolbars you might need to recreate them after you rename your template because you cannot copy those changes with the Organizer.

(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Chris Jensen, Microsoft Corporation.


REFERENCES

For additional information about the error messages, click the following article numbers to view the articles in the Microsoft Knowledge Base:

173547 WD: Error Message: Word Cannot Open the Document


189439 WD97: Word Fails to Open "Cannot Open the Existing <Square Symbol>"


224338 PRB: Error 800A175D - Could Not Open Macro Storage


246018 BUG: Automation Error 8001010A when Automating Word 2000


272347 OFF98: Visual Basic Error Messages When You Start Office Program or Visual Basic Editor, or Run a Macro



Additional query words: 8001010A 800A175D 800A142D 0x8001010A 0x800A175D 0x800A142D WD2007

Keywords: kbexpertisebeginner kbautomation kbinfo KB247028