How to Create a Macro in Word 2007
Step 1: Open the Developer tab. Click on Record Macro in the Code section of the tab.
Step 2: Pick a name for your new command and type it into the Macro name field in the Record Macro dialog box. Note that the macro name must begin with a letter, and it cannot contain any special characters, symbols, or spaces. Also, while this is optional, it’s a good idea to go ahead and type in a description for the macro. You can leave this field blank if the name of the macro makes the function of the command obvious, but it never hurts to include a short description.
Step 3: Decide where you want to store the macro. If you choose to store it in All Documents, it will be stored in the global template and accessible from any document you create later on down the line. If the macro is really only intended to be used for the current document you are working in, you can choose to store it there instead so as not to clutter up the global template with an unused macro.
You can also create a shortcut for the macro here if desired. We’ll wait and discuss how to do that in Part 2 of this series.
Click OK to continue to the next step.
Step 4: Perform the set of actions that you want the macro to include. It’s important to note here that you need to use your keyboard when performing these tasks since most mouse movements and actions will not be recorded.
If you need to type in anything that you don’t want the macro to include, click on Pause Recording in the Developer tab. When you are done and want to start recording actions again, click on Resume Recorder.
Step 5: When you’ve finished executing all of the commands that you want the macro to include, click on Stop Recording.