Here’s how to create and test a macro in Microsoft Word.

Some of these commands, however, are not assigned to menus or toolbars by default.

To see the commands available in Word, stick to this:

Select theViewtab.

Word with the View tab highlighted

Or, press theAlt+F8shortcut key to access theMacrosdialog box.

Select theMacros indrop-down arrow and chooseWord Commands.

If the command you wish to create exists, don’t duplicate it with your own Word macro.

View ribbon in Word with the Macros heading highlighted

If it doesn’t exist, proceed with creating your Word macro.

Plan for Effective Word Macros

The most important step in creating effective Word macros is careful planning.

when you’ve got these things in mind, plan the actual steps.

Macros menu in Word with the View Macros command highlighted

This is important because the recorder will remember everything you do and include it in the macro.

it’s possible for you to then follow the steps you laid out in the planning stage.

Once you are done, press theStopbutton (it is the blue square on the left).

Macros menu with the Word Commands option highlighted

Once you press theStopbutton, your Word macro is ready to use.

Here’s how to record a macro.

Go to theViewtab, selectMacros, then chooseRecord Macroto open theRecord Macrodialog box.

Macros screen in Word with ListCommands highlighted

In theMacro Nametext box, bang out a unique name.

In theDescriptiontext box, enter a description of the actions the macro performs.

Select whether you want the macro to be available in all documents or only in the current document.

Record Macro command in Word

When you have entered the information for the macro, selectOK.

The Record Macro Toolbar appears in the upper-left corner of the screen.

To pause the recording, select thePause Recording/Resume Recorderbutton (it is the one on the right).

New Macro window in Word with the Macro Name and Description fields highlighted

To resume recording, select it again.

ensure your macro runs as intended by testing the macro.

To spin up the macro, press theAlt+F8shortcut key to display theMacrosdialog box.

New Macro window in Word with the “Store Macro In” option highlighted

Highlight the macro in the list, then selectRun.

If you dont see your macro, check that the correct location is in theMacros inbox.

Create Keyboard Shortcuts for Macros

If you created several macros, searching through theMacrosdialog box takes time.

Record Macro window in Word with the OK button highlighted

SelectFile, then chooseOptions.

In theWord Optionsdialog box, go to the left pane and selectCustom Ribbon.

In theCategorieslist, scroll down toMacrosand pick the macro for which you want to create a new shortcut.

Screenshot of Macros dialog box

Enter the shortcut key you want to use to access your macro.

Either reassign the shortcut key by continuing, or select a new shortcut key.

Select theSave changes indrop-down arrow and chooseNormalto apply the change to all documents created in Word.

Macros window in Word with the Run button highlighted

To use the shortcut key only in the current document, go for the document name from the list.

SelectCloseto back up your changes.

Word with the Options button highlighted

Word Options with the Customize Ribbon section highlighted

Macros in Word with the Customize button highlighted

Macro customization menu with the Categories heading highlighted

Press new shortcut key menu in Word

“Save changes in” dropdown menu in Word macro setup

Assign button in Word macro settings

Close button in Word macro settings