Word 2013 Macro Quick Reference Guide
2010, 2014©University of Notre Dame
March 6, 2014
What is a macro?
A macro is a collecon of commands that you can apply with a single click. A macro is a way to automate acons you may perform oen, such as
adding special formang to certain paragraphs or inserng a specic size table into a document.
1. On the Developer tab, in the Code group, click
Record Macro.
Note: If the Developer tab is not on your ribbon:
(1) Go to File > Opons > Customize Ribbon and click the
Developer check box at right.
(2) Click OK.
2. In the Macro name box, type a name for the
macro.
Note: The macro name must begin with a leer and
cannot contain special characters, symbols, or spaces.
3. In the Store macro in box, click the template or
document to store the macro in.
Note: To make your macro available in all documents,
be sure to click Normal.dotm.
4. In the Descripon box, type a descripon of
the macro.
5. At this me you can choose one of three
opons: Begin recording, create a buon or
assign a keystroke.
Record a macro
Opon 1: Begin recording
Opon 2: Create a buon
a. To begin recording the macro without as-
signing it to a buon on the Quick Access
Toolbar or to a shortcut keystroke, click
OK.
b. Perform the acons you want to include in
the macro and then click Stop Recording
(on the Developer tab, in the Code group).
Note: When you record a macro, you can use the mouse
to click commands and opons, but not to select text.
Instead use SHIFT+ arrow keys to manually select text.
To assign the macro to a buon on the Quick
Access Toolbar, do the following:
a. In the Record Macro dialog box, click But-
ton.
b. Under Choose commands from, click the
macro that you will be recording, and then
click Add.
c. Under Customize Quick Access Toolbar,
select the document (or all documents) for
which you want to add the macro to the
Quick Access Toolbar.
Note: To make your macro available in all docu-
ments, select For all documents (default).
d. To customize the buon, click Modify.
e. Under Symbol, click the symbol that you
want to use for your buon.
f. In the Display name box, type the macro
name that you want to display.
g. Click OK twice to begin recording the macro.
h. Perform the acons that you want to in-
clude in the macro. (See Opon 1 note.)
i. To stop recording your acons, click Stop
Recording (on the Developer tab, in the
Code group).
Note: The symbol that you chose is displayed in the
Quick Access Toolbar. The name of the macro is
displayed when you point the mouse at the symbol.
Opon 3: Assign a keyboard shortcut
To assign a keyboard shortcut to the macro,
do the following.
a. In the Record Macro dialog box, click
Keyboard.
b. In the Commands box, click the macro
that you are recording.
c. In the Press new shortcut key box, type
the key sequence that you want.
d. From the Save changes in dropdown,
select the document in which you want to
store the macro.
Note: To make your macro available in all docu-
ments, be sure to click Normal.dotm.
e. Click Assign.
f. Click Close to begin recording the macro.
g. Perform the acons that you want to
include in the macro. (See Opon 1 note.)
h. To stop recording your acons, click Stop
Recording (on the Developer tab, in the
Code group).
Macro Quick Reference Guide (side 2)
Run a macro
If you created the macro with a buon or an as-
signed keystroke, simply click the buon or press
the appropriate key combinaon to run the macro.
If you simply recorded and named your macro, to
run it do the following:
1. On the Developer tab, in the Code group, click
Macros.
2. From the list under Macro name, select (click)
the macro that you want to run.
3. Click Run.
Assign a buon to a macro
1. Go to File > Opons.
2. Click Quick Access Tool Bar.
3. In the Choose commands from dropdown,
choose Macros.
4. Select the macro you want displayed on the
Quick Access Toolbar, then click Add.
Note: If necessary, arrange the order of the buons
in the Customize Quick Access Toolbar area.
5. Click OK.
Edit a macro
Unless you have had some programming experi-
ence using Visual Basic, I would not recommend
eding a macro. However, if it is only to correct
content errors, then do the following:
1. On the Developer tab, click Macros.
2. Select the macro you wish to edit, then click
Edit.
3. Once the change is made, click File and then
click Close and Return to Microso Word. The
changes are saved automacally to the macro.
Assign a keystroke or button to an existing macro
Assign a keystroke to a macro
1. Go to File > Opons.
2. Click Customize Ribbon.
3. Next to Keyboard shortcuts, click Customize.
4. In the Categories list, click Macros.
5. In the Macros list, click the macro that you
want to change.
6. In the Press new shortcut key box, type the
key combinaon that you want to choose.
7. Check below the Current keys box to make
sure that you aren’t assigning a key combi-
naon that has already been assigned (ex:
Currently assigned to: EditCopy).
8. In the Save changes in list, click the opon
that matches where you want to run your
macro.
Note: To make your macro available in all docu-
ments, be sure to click Normal.dotm
9. Click Assign, then Close.
10. Click OK.