WD: Error in Recorded Macro Using Keyboard ShortcutsLast reviewed: February 3, 1998Article ID: Q166702 |
The information in this article applies to:
SYMPTOMSWhen you record a WordBasic macro to apply a style using a user-defined keyboard shortcut, playing back the recorded macro may return the following error:
Error 509: Command not available. CAUSEWhen the macro is recorded, the following line is added after the command that applies the style:
Unrecognized_Statement101The macro resembles the following:
Sub MAIN Style "Style1" Unrecognized_Statement101 End SubThis "Unrecognized_Statement101" line is not a valid WordBasic statement. When you attempt to run the recorded macro, the macro fails on this line and you receive the error message.
WORKAROUNDTo work around this problem, follow these steps to edit the macro:
Method 1: Select a Style Using the Style MenuTo select a style using the Style menu, follow these steps:
Method 2: Select a Style Using the Style Box on the Formatting ToolbarTo select a style using the Style box on the Formatting Toolbar, follow these steps:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. Additional Query Words: Keywords : kberrmsg kbmacro kbprg Version : WINDOWS:6.0,6.0a,6.0c,7.0,7.0a; MACINTOSH:6.0,6.0.1,6.0.1a Platform : MACINTOSH WINDOWS Issue type : kbbug Solution Type : kbworkaround |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |