• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Excel Tutorials by Y. Acosta

Excel Tutorials + Tips

  • Excel Tutorials
  • Etsy Store
  • Other Resources
  • About Me
    • About Me
    • Contact Me
    • FREE Printable List of Top Excel Keyboard Shortcuts
  • FREE pdf of Top Excel Shortcuts!

What is a Macro in Excel??? + How to Make One (with video tutorial)

❤ Support Free Excel Training by Sharing -

We may be compensated for your purchase of any of the products featured on this page – it helps us keep the lights on :)

Macros in Excel are essentially instructions, in the form of code, used to automate steps in a process.

This can be anything – like reformatting, inserting formulas, new text, etc. It sounds complex, and they sometimes can be, but, for a lot of everyday spreadsheet tasks, creating a macro is super easy and can save you a TON of time.

When to Use a Macro

Macros are ideal for tasks where you repeat the same steps each time you do them.

Let’s say that you have a report you run each morning. The report generates raw data that you need to reformat before you deliver it to anyone.

Example of Report with Raw Data
Example of Report with Raw Data
Example of Report with Raw Data After Reformatting
Example of Report with Raw Data After Reformatting

By recording (into a macro) each step you take to reformat the report, you’ll save valuable time on this task every morning.

IMPORTANT: At this time, macros do not work on the mobile or web versions of Excel.

How to Record a Macro in Excel

WATCH: How to Make a Macro in Excel – Video Tutorial

The easiest way to create a macro in Excel is by using the Macro Recorder.

Excel Macro Recorder

The Macro Recorder tool works by creating a record of every step you take during recording. It then converts this record into a code that Excel can execute. This code is your macro.

In other words, when using the Macro Recorder, you do your work as you normally would and Excel will record every step you take to create the macro.

You’ll find the Macro Recorder in the Developer tab of your ribbon. It will be in the Code Section and is the icon labeled “Record Macro.”

Macro Recorder in the Developer tab, in the Code section
Macro Recorder in the Developer tab, in the Code section

If you do not see the Developer tab, you will need to add it.

READ: Instructions on How to Add the Developer tab to your Excel ribbon.

Recording Your Excel Macro

When you’re ready to begin recording your macro, simply click on the Record Macro icon.

Once you click on this, you’ll see the Macro Recorder’s dialogue box.

Macro Recorder Dialogue Box
Macro Recorder Dialogue Box

You have four options. None are mandatory, but there are 2 that I highly recommend paying attention to:

  1. Macro name: Give your macro a name to make it easier to find it later
  2. Store macro in: Decide where to save your macro

If you like, you can also assign a shortcut key. I usually do not like doing this because Excel has so many keyboard shortcuts that it can be easy to accidentally override one. But that’s just me.

You can also add a description of your macro. This is a good idea if you’re sharing the macro with other users.

Where to Save Your Macro

You have 3 options for where to save your macro.

1. Personal Macro Workbook

This is a workbook created by Excel for the purpose of storing macros. You can save as many macros here as you like. Only you will have access to macros in this location.

The Personal Macro Workbook is a “Hidden” workbook. To open it, you will need to go to the View tab in your ribbon and, in the Window section, click on “Unhide.” Then, to access the macros, go to the Developer tab and click on “Macros.”

2. New Workbook

You may want to store your macro in a workbook other than your Personal Macro Workbook. This is ideal if you want to save it in a network drive, for example, where others can also access it. Or if you need to email the macro file.

3. This Workbook

Saving your macro in the workbook in which you recorded it is ideal if, say, you plan to share the file with other users who will also need to run the macro.

Options for Where to Save Your Macro
Options for Where to Save Your Macro

Once done with the dialogue box, click OK to begin recording your macro.

While the recording is going on, make only the changes to your sheet that you want replicated in the macro.

The macro recorder will record everything exactly as you’ve done each step. For example, if you insert a formula in cell A1, running the macro will always insert that exact formula in cell A1.

Once you’ve finished all the steps you want to include in your macro, click on Stop Recording to end the recording.

Stop the Macro Recorder in the Developer tab, in the Code section
Stop the Macro Recorder in the Developer tab, in the Code section

Run Your Macro

Now, to run your macro:

1. Go to the Developer tab

2. In the Code section, click on “Macros“

Click on Macros in the Developer tab, in the Code section to see your Excel macros
Click on Macros in the Developer tab, in the Code section to see your Excel macros

3. Select your macro from the list

List of Macros You Can Run
List of Macros You Can Run

4. Click Run

NEXT: Macro Buttons in Excel – ALL You Need to Know (+ video tutorial)



Related Articles:

  • Macro Buttons in Excel (Feat. Image)
    Macro Buttons in Excel - ALL You Need to…
  • How to Debug a Macro in Excel - Tutorial
    How to Debug a Macro in Excel - Tutorial
  • How to edit a macro in Excel - Tutorial
    How to Edit a Macro in Excel - Tutorial

❤ Support Free Excel Training by Sharing -

blank

About Y. Acosta

Yil's (pronounced like "Jill") passion for Excel spreadsheets can be traced back to her days in marketing, where she spent significant time working on analytics. As a content creator, she now specializes in Excel spreadsheet tutorials. Make sure to visit the About page to learn more.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow us:

Latest Tutorial:

Featured image for How to Use Find & Replace to Remove Wildcard Characters in Excel article

Click Here for More Excel Tutorials!!!

Get Your FREE pdf of Top Excel Keyboard Shortcuts!

* indicates required

blank

Image-button for Invoice Template for Etsy

Copyright © 2025

  • Home
  • Excel Tutorials
  • Resources
  • About Me
  • Privacy Policy & Terms of Use
  • Disclaimer
  • Advertiser Disclosure
  • Contact Me
  • FREE Printable List of Top Excel Keyboard Shortcuts
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
SettingsAccept
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT