Recording Macros in Word 2007

Automate frequent tasks, no matter how complicated

close-up of hand on mouse using computer

webphotographer / E+ / Getty Images

Microsoft Word 2007 is several generations out of date and is no longer actively supported by Microsoft. If you can, you should update to a modern, supported version of Word to ensure you receive important security upgrades and feature enhancements.

A small sliver of the population still uses Word 2007, either because they prefer it or because their organization hasn't yet upgraded. We, therefore, retain this tutorial about macros for its historical value and to support Word 2007's remaining user base.​

of 05

Introduction to Word Macros

Displaying the Developer Ribbon in Microsoft Word 2007

Macros are a great way to automate your work in Microsoft Word. A macro is a set of tasks that can be performed by pressing a shortcut key, clicking a Quick Access toolbar button, or by selecting the macro from a list.

Word supports a variety of options for creating your macro. It can include any command in Microsoft Word.

The options for creating a macro are on the Developer tab of the ribbon. By default, Word 2007 doesn't display the options for creating a macro. To display the options, you must turn on Word's Developer tab.

  1. To display the Developer tab, click the Office button and select Word Options.
  2. Click the Popular button in the left side of the dialog box.
  3. Select Show Developer tab in the Ribbon.
  4. Click OK. The Developer tab will appear to the right of the other tabs on Word's ribbon.
of 05

Preparing to Record Your Word Macro

Word 2007's Record Macro dialog box

Open the Developer tab and click Record Macro in the Code section.

Enter a name for the macro in the Macro Name box. The name you choose can't be the same as a built-in macro. Otherwise, the built-in macro will be replaced with the one you create.

Use the Store macro in box to select the template or document in which to store the macro. To make the macro available in all documents you create, select the Normal.dotm template. Enter a description for your macro.

You can create a Quick Access toolbar button for your macro. You can also create a keyboard shortcut so that the macro can be activated with a hotkey.

If you don't want to create a button or shortcut key, click OK now to begin recording; to use your macro, you will need to click Macros from the Developer tab and select your macro. 

of 05

Creating a Quick Access Toolbar Button for Your Macro

Creating a Quick Access Toolbar button for a macro in Word 2007
  1. To create a Quick Access button for your macro, click Button on the Record Macro box. This will open the Customize Quick Access Toolbar options.
  2. Specify the document in which you would like the Quick Access toolbar button to appear.
  3. Select All Documents if you want the button to appear while you're working on any document in Word.
  4. In the Choose Command From dialog box, select your macro and click Add.
  5. To customize your button's appearance, click Modify.
  6. Under Symbol, select the symbol you would like to display on your macro's button.
  7. Enter a display name for your macro that will pop up as a ScreenTip.
of 05

Assigning a Keyboard Shortcut to Your Macro

Creating a shortcut yey for your custom macro in Word 2007
  1. To assign a keyboard shortcut to your macro, click Keyboard in the Record Macro dialog box.
  2. Select the macro that you're recording in the Commands box.
  3. In the Press new shortcut key box, enter your shortcut key.
  4. Click Assign and then click Close.
  5. Click OK.
of 05

Recording Your Macro

After you select your macro options, Word will automatically begin recording the macro.

You can use keyboard shortcuts to perform the actions you would like to include in the macro. You can also use the mouse to click buttons on the ribbons and dialog boxes. However, you cannot use the mouse to select text; you must use the keyboard navigation arrows to select text.

Everything you do will be recorded until you click Stop Recording in the Code section of the Developer ribbon.