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:

DOWNLOAD EXCEL WORKBOOK

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

How to Use Macro Recorder in Excel

HELPFUL RESOURCE:

 

Free Excel Macros & VBA Webinar Training

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

Share on Google+

Google+