How to Record a Macro in Microsoft Excel

See Microsoft Excel: Tips and Tricks for similar articles.

Follow these five steps to record a macro in Excel:

This feature works the same in all modern versions of Microsoft Excel: 2010, 2013, and 2016.

  1. On the View tab, in the Macros group, click the Macros command.Macros
  2. Click Record Macro.Record Macro
  3. In the Record Macro dialog box:
    1. Enter a Macro name. Choose a name that clearly identifies the macro. You may not use spaces.
    2. Enter a Shortcut key. You will be able to run the macro using this shortcut key.
    3. Choose where to store the macro. You will normally accept the default (This Workbook).
    4. Enter a Description. Briefly explain what the macro does.
    5. Click OK.Click OK
  4. After clicking OK, every keystroke is recorded.
  5. To stop recording, on the View tab, in the Macros group, click the Macros command and then click Stop Recording.Stop Recording