Create or delete a macro in Word 2016 for Mac

To save time on tasks you do often, you can record the steps of those tasks as a macro. Then, when you want to perform one of those recorded tasks, you can activate the macro to perform the steps for you.

What do you want to do?

For instructions on running a macro that you've recorded, see Run a macro in Word 2016 for Mac.

Create a macro with a keyboard shortcut

To create a macro, you give it a name, assign it to a key combination, and then record the activity that the macro will perform.

  1. Click View > Macros > Record Macro.

    On the View tab, click Macro, and then click Record Macro to begin creating a macro.
  2. Type a name for the macro, or accept the default that Word provides.

    Enter a name for your macro in Macro name, or accept the generic name provided by Word.
  3. To use this macro in any new documents you create, verify that All Documents (Normal) is selected in the Store macro in list.

  4. Click Keyboard to assign a key combination to your macro.

    Word displays the Customize Keyboard dialog box.

  5. Type a combination of keys in the Press new keyboard shortcut box.

    Word displays the command or macro already assigned to a key combination, if any, after you press the combination.

    When you press a key combination, Word displays the command or action currently assigned to that key combination, if any.

  6. If the key combination that you chose is already assigned, delete it from the Press new keyboard shortcut box, and then choose a new key combination.

    Go on to the next step after you have found an unassigned key combination.

    Word identifies when you have pressed a key combination that is not yet assigned to a command or macro.
  7. To use this keyboard shortcut in any new documents, be sure Normal.dotm, the global template, is selected in the Save changes in list.

    Select Normal.dotm to make a macro available for use in new documents that you create.
  8. Click Assign.

  9. When you are ready to record the macro, click OK.

  10. Click the commands or press the keys for each step in the task.

    Word records your clicks and keystrokes, but it does not record text that you select with the mouse. To select text while recording a macro, use the keyboard.

  11. To stop recording, click View > Macros > Stop Recording.

    Click Stop Recording on the Macros menu to stop recording a macro.

Delete a macro

You can delete a macro by selecting it in the Macros dialog box.

  1. Click View > Macros > View Macros.

    Click View Macros to view and edit macros associated with the current document.
  2. Verify that the location specified by Macros in includes the location of the macro that you want to delete.

    Select the location of the macros that you want to view from the Macros in list.

    The list will include the document that is open in the current window, as well as the global template and Word commands.

  3. Under Macro name, select the macro that you want to delete, and then click the minus sign below the list.

    Select the macro that you want to delete, and then click the minus sign under the list.
  4. When Word asks to confirm that you want to delete the macro, click Yes.

See Also

Run a macro in Word 2016 for Mac

Make a macro available to all documents in Word 2016 for Mac

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!