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.
- Click the View tab on the Ribbon
- Click the list arrow on the Macros button and select Record Macro
- Type a name for the macro in the Macro name: box
- Click the Store macro in: list box and choose to save the macro in one of the templates or in the current document
- Enter a description for the macro in the Description: field
- Click Ok
- 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
When entering the name of a macro, you cannot use spaces or start with a number
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.