Word > Word 2007 Advanced > Creating and Running Macros

Create a Macro

A macro is a series of actions that are recorded and can then be executed in a sngle click of a button. Create a macro to perform time consuming, repetitive tasks so that you don't have to complete them yourself.

When you record a macro, Word writes VBA code that performs the task. Creating a macro by recording the actions is easy to do, but has it's limitations. To edit your macros, or create more advanced and complex macros, you need some knowledge of VBA in Word.

Create a Macro

When you record a macro, Word records every step you take. It is recommended to write the required steps down on a piece of paper before recording.

A macro can only be edited by changing the VBA code. So if a mistake is made, it can be easier to delete the macro and then record it again.

  1. Click the View tab on the Ribbon
  2. Click the list arrow on the Macros button and select Record Macro
  3. Click the list arrow of the Macro button

  4. Type a name for the macro in the Macro name: box
  5. When entering the name of a macro, you cannot use spaces or start with a number

    Record a macro

  6. Click the Store macro in: list box and choose to save the macro in one of the templates or in the current document
  7. Enter a description for the macro in the Description: field
  8. Click Ok
  9. Word starts recording your actions. A cassette icon is visible on the mouse arrow and the Stop Recording button appears on the Status Bar at the bottom of the window
  10. Stop Recording button on the Status Bar

    Perform the actions that you want the macro to record and click the Stop Recording button when you have finished

The macro has been created. It is not accessible by any toolbar button at the moment. The macro should be tested, and edited if required, before it is assigned a toolbar button.

Follow us on

Facebook  Twitter  You Tube