Pinterest Pixel

How to Use Macro Recorder in Excel

Sometimes we want to automate some steps in Excel to save us time, however it’s cumbersome to... read more

Download Excel Workbook
Bryan
Posted on

Overview

How to Use Macro Recorder in Excel | MyExcelOnline

Sometimes we want to automate some steps in Excel to save us time, however it’s cumbersome to code the exact macro for it – especially as a VBA beginner.

But you know what?  There is an easy way around 🙂

You can try out the Macro Recorder to mimic each step inside Excel and reuse those steps next time around.  How cool is that?!

Make sure your Excel ribbon has the Developer Tab enabled following this tutorial.

Turn on the Macro Recorder, do the steps, stop the Macro Recorder, run the Macro and bam! Excel will repeat the exact same steps you just did!

I explain how you can do this below:

How to Use Macro Recorder in Excel | MyExcelOnline

Download excel workbookHow-to-Use-Macro-Recorder-in-Excel.xlsm

STEP 1: Go to Developer > Record Macro

How to Use Macro Recorder in Excel

Go with the default name Macro1 and click OK.

How to Use Macro Recorder in Excel

 

STEP 2: Now it’s starting to record! Here’s what we want to do:

  • Select a Cell (A8 in our example below)
  • Click Bold
  • Click Italic
  • Select the highlight color to be yellow

How to Use Macro Recorder in Excel

Go to Developer > Stop Recording

How to Use Macro Recorder in Excel

 

STEP 3: Now let us try out the macro in action.

Select the rest of the cells that we want to apply the actions on.

Go to Developer > Macros

How to Use Macro Recorder in Excel

Make sure Macro1 is selected and click Run.

How to Use Macro Recorder in Excel

And it’s like magic! The same steps are now applied!

How to Use Macro Recorder in Excel

 

STEP 4: Let us have a look how that magic was done. Go to Developer > Visual Basic

How to Use Macro Recorder in Excel

Go to Modules > Module1. You can see the code that does the following: Setting Bold, Italic, and filling the color with Yellow:

How to Use Macro Recorder in Excel

 

 

Use Macro Recorder in Excel

 

 

101 Macros Book

If you like this Excel tip, please share itEmail this to someone

email

Pin on Pinterest

Pinterest

Share on Facebook

Facebook

Tweet about this on Twitter

Twitter

Share on LinkedIn

Linkedin

How to Use Macro Recorder in Excel | MyExcelOnline
How to Use Macro Recorder in Excel | MyExcelOnline
Bryan

Bryan is a best-selling book author of the 101 Excel Series paperback books.

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!