Record or Run A Macro: Show The Developer Tab
Record or Run A Macro: Show The Developer Tab
Show All
In Microsoft Office Word 2007, you can automate frequently used tasks by creating and running macros. A macro is a
series of commands and instructions that you group together as a single command to accomplish a task
automatically.
To combine multiple commands — for example, to insert a table with a specific size and borders, and with a
You can record a sequence of actions, or you can write a macro from scratch by entering code in the .
NOTE To work with macros in Office Word 2007, you need to show the Developer tab.
1. Click the Microsoft Office Button , and then click Word Options.
2. Click Popular.
3. Under Top options for working with Word, select the Show Developer tab in the Ribbon check box.
NOTE The Ribbon is a component of the Microsoft Office Fluent user interface.
TOP OF PAGE
Record a macro
Begin recording To begin recording the macro without assigning it to a button on the Quick Access
Create a button To assign the macro to a button on the Quick Access Toolbar, do the following:
1. Click Button.
2. Under Customize Quick Access Toolbar, select the document (or all documents) for which you
want to add the macro to the Quick Access Toolbar.
IMPORTANT To make your macro available in all documents, be sure to click Normal.dotm.
3. Under Choose commands from dialog box, click the macro that you are recording, and then click
Add.
5. Under Symbol, click the symbol that you want to use for your button.
6. In the Display name box, type the macro name that you want to display.
The symbol that you choose is displayed in the Quick Access Toolbar. The name that you type is
displayed when you point to the symbol.
Assign a keyboard shortcut To assign the macro to a keyboard shortcut, do the following:
1. Click Keyboard.
2. In the Commands box, click the macro that you are recording.
3. In the Press new shortcut key box, type the key sequence that you want, and then click Assign.
NOTE When you record a macro, you can use the mouse to click commands and options, but not to
select text. You must use the keyboard to select text. For more information about selecting text by using
the keyboard, see Select text.
3. To stop recording your actions, click Stop Recording in the Code group.
1. Click the Microsoft Office Button , and then click Word Options.
2. Click Customize.
5. In the Macros list, click the macro that you want to change.
6. In the Press new shortcut key box, type the key combination that you want to choose.
7. Check the Current keys box to make sure that you aren't assigning a key combination that you already use
to perform a different task.
8. In the Save changes in list, click the option that matches where you want to run your macro.
IMPORTANT To make your macro available in all documents, be sure to click Normal.dotm.
9. Click Close.
TOP OF PAGE
Run a macro
2. In the list under Macro name, click the macro that you want to run.
3. Click Run.
TOP OF PAGE
NOTE If you give a new macro the same name as a built-in macro in Office Word 2007, the new macro
actions will replace the built-in macro. To view a list of built-in macros, click Word Commands in the
Macros in list.
3. In the Macros in list, click the or document in which you want to store the macro.
After you open the Visual Basic Editor, you may want more information about working with Visual Basic for
Applications. For more information, click Microsoft Visual Basic Help on the Help menu or press F1.
TOP OF PAGE
See it in action
Watch these videos to see how to create, edit, and run a macro.
Play Demo
See how to enable the Developer tab, prepare a macro, assign a button, and
begin recording
Play Demo
Watch as a macro is edited in Microsoft Visual Basic and saved.
Play Demo
Assign a button or a keyboard shortcut to an existing macro.