Word > Word 2007 Advanced > Creating and Running Macros

Run and Edit a Macro

After creating a macro it should be tested to check that it functions as required. Sometimes a macro may not work as desired and the VBA code will require some tweaking.

Run a Macro

  1. Click the Macros button on the View tab or press Alt + F8 to open the Macros dialogue box
  2. List of macros in the Macros dialogue box

  3. Select the macro you want to run from the list
  4. Click Run
  5. The macro runs performing the recorded steps

Edit a Macro

Editing a macro requires the use of VBA code. With just a little knowledge of VBA you can make minor adjustments to macros to correct them, or make them run more efficiently.

  1. Click the Macros button on the View tab or press Alt + F8
  2. Select the macro that you want to edit
  3. Click Edit
  4. The Visual Basic Editor displaying the code written for your macro. Delete or enter the necessary code
  5. Edit a macro's VBA code in the Visual Basic Editor

  6. Click the Save button and close the VBE window

Follow us on

Facebook  Twitter  You Tube