GP Fault in Header/Footer After Running ToolsSpelling in Macro

ID: Q99980

The information in this article applies to:

SYMPTOMS

If you run a macro that performs the ToolsSpelling command, and if the spelling checker flags a misspelled word in the document header or footer, a general protection (GP) fault (or GPF) occurs in Word for Windows when you open the header or footer pane from normal view after the spelling check is complete. The GP fault may occur as soon as you open the header or footer for viewing, or it may not occur until you edit the header or footer.

STATUS

Microsoft has confirmed this to be a problem in the versions of Microsoft Word for Windows listed above. This problem was corrected in Word version 6.0 for Windows.

To obtain new or updated Microsoft products, call the Microsoft Sales Information Center at (800) 426-9400. If you are outside the United States, contact the Microsoft subsidiary for your area. To locate your subsidiary, call Microsoft International Customer Service at (425) 936-8661.

WORKAROUND

Instead of using the ToolsSpelling command in a macro, run the ToolsSpelling macro using the ToolsMacro command instead. You can use the following command in your macro in place of the ToolsSpelling command:

   ToolsMacro "ToolsSpelling", .Run

For more information on running the ToolsSpelling command from a macro, query on the following words in the Microsoft Knowledgebase:

   toolsspelling and macro

MORE INFORMATION

When you run the ToolsSpelling command from a macro, as described above, the GP fault occurs whether you choose one of the Change buttons or one of the Ignore buttons in the Spelling dialog box. Furthermore, the GP fault occurs regardless of whether the spelling checker runs in normal or page layout view. The error occurs only if you view or edit the header or footer in normal view after the spelling checker flagged a misspelled word in the header or footer.

KBCategory: kbproof KBSubcategory: Additional query words: GP Fault GPF error hang hung crash crashed winword2 winword locks locked frozen freezes crashing quit quits stopped 2.0a 2.0a- 2.0b 2.0c

Last Reviewed: October 8, 1997