Microsoft KB Archive/61601

Macro Editor Changes Built-in Macros to User-Defined Macros

PSS ID Number: Q61601 Article last modified on 09-25-1991

1.00 WINDOWS

Summary: If you edit a built-in macro with the WordBASIC Macro Editor and save the changes, the macro becomes a user-defined macro. This results in the loss of all option buttons except for the OK and Cancel buttons, along with the general built-in error trapping feature that was available in the original built-in macro. If you do not insert an error trapping routine in the macro, each time you select Cancel, Word for Windows returns WordBASIC err=102 “command failed.” To eliminate this error message, use the WordBASIC On Error function and create a custom error trapping routine. You can also reset the original built-in macro by selecting the user-defined macro from the Macro Edit dialog and deleting it. The default built-in macro will now be available. For more information on WordBASIC commands and functions, see the “Microsoft Word for Windows Technical Reference.”

Additional reference words: w4werror w4wmacro