Editing a Macro

Editing a Macro

Sometimes a macro does not work as you expect, and you need to modify it. You can rerecord the macro to correct the problem, or because macros are instructions written in Microsoft Visual Basic for Applications (VBA), you can edit it in the Visual Basic Editor.

Word macros are stored in modules within a Visual Basic macro project that is stored in a document or template. To edit a macro, you display the Macros dialog box, click the macro, and then click Edit. The Visual Basic Editor program window opens, and you can then select the module you want to work on and make changes.

When you no longer need a macro, you can delete it from ...

Get Microsoft® Office Word 2003 Step by Step now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.