What every Excel user needs to know about Macros and VBA in Excel

Last updated on December 13, 2011 By

"Automate-Automate-Automate" said the little red robot

When you start using Excel you’ll probably do all your work manually because you haven’t found the powerful automation built right into Excel. It was the same for me when I first started using Excel. Entering data, copying and pasting results, formatting and charting – you name it, I did it all by hand.

Years later I found out about Macros and VBA and once I got to know VBA, I wonder how I ever got along without it. In this article I’ll introduce you to Macros, quickly show you the Macro recorder and explain the difference between Macros and VBA.

“What’s VBA?” you ask, well read on to find out about this powerful feature of Excel that can help you automate boring, time-consuming tasks.

What’s a Macro?

A Macro is a collection of commands that you can run with a single click or keyboard combination. They can automate almost anything you can do in Excel and even do things you might not have known were possible.

In essence, a macro is a computer program that gives automated instructions to the computer. The original macros were a way to use a few characters to represent a lot of instructions. They were called macros because the output was much bigger than the input. (Greek makros = “long, large”)

The use of Macros in Excel saves time and can expand the capabilities of Excel. They can automate repetitive tasks like creating and printing documents that you and your colleagues use regularly.

"Hi!" drawn by recording and replaying a VB Macro in Excel

Macro Security Warnings

You have probably seen macro warnings when opening Microsoft Office documents, and so macros might make you think of scary things such as viruses. Well you should know that most macros are not only harmless but are actually tremendous timesavers. And macros are easier to create and use than you might expect.

Create a Macro in Excel using the Macro Recorder

Create a Macro in Excel using the Macro Recorder

Using the Macro Recorder in Excel 2010 (right click on status bar for options)

You can repeat a macro as many times as you want by asking Excel to replay the macro. Macros may be run from a toolbar button, or menu, from a shape in the workbook, or from another macro.

Excel VBA programming

Microsoft VBA is the programming language that Excel Macros are recorded in. VBA stands for “Visual Basic for Applications”. With VBA you can create visual basic macros for Excel.

If you can record Macros with the Macro recorder, why would you want to use VBA? The truth is that while the Macro recorder is simple to use, it doesn’t create nice code and it can only record straightforward tasks.

VBA allows you to add brains to your macros and turn them into intelligent programs, for example you can ask the user to type in their name and store that in your program. VBA allows you to take advantage of features that can’t be accessed through the standard user interface. Below you can see Option Buttons being used inside a user form to get input from the user.

User Forms can be displayed in Excel using VBA

Excel was the first major Microsoft Office application to use VBA, but VBA is not tied directly to Excel. It works just as well with other VBA-enabled applications, such as Word, Access and PowerPoint. So anyone who knows how to write Excel macros in VBA can transfer that knowledge to other types of Visual Basic programming.

If you know how to write Excel macros in VBA you can quickly transfer that knowledge

and learn to write macros in other Office programs such as Word, Access and


The best way to start learning how VBA communicates with Excel objects is to create some simple macros by using the macro recorder. Eventually, however, you’ll want to move beyond the limitations of the macro recorder and learn VBA.

Excel Macros Tutorial (for Excel 2010)

Want an easy way to learn Macros and VBA in Excel?

Read about my recommended Excel Macros tutorial course that teaches how to use Macros and VBA, with over 3 hours of high quality video.

When I think back to my early days of using Macros and VBA, it would have been great to have a video course like the one I’m going to recommend, because it would have saved me a lot of time and hassle searching for material on the internet.

When you sign up I’ll send you a short series of e-mails with links to 4 FREE sample videos from the recommended course, and then explain what you get if you decide to buy this online learning course. Sign up using the form below.

Related Posts:

Connect on YouTube, LinkedIn, Twitter.

Hey, I'm Victor Chan

Are you struggling with complex Excel tasks? Feeling overwhelmed by spreadsheets that are hard to use?

Many people believe mastering Excel is about learning shortcuts, functions, and formulas. But this overlooks the importance of building practical, real-world applications. It's not just about knowing the tools. It's about using them effectively.

That's where I come in. You'll get a unique perspective to Excel training from me. I have over 20 years of experience at Deloitte and two global tech companies. And I know what can make a difference in your career.

Let me help you integrate Excel into your professional life. Starting today. Read one of my articles, watch one of my videos. Then apply the new technique to your work. You'll see the difference immediately!

Recommended Posts

Discover the PROVEN Blueprint for transforming your Excel skills, supercharging your productivity, and standing out in your career! My course helps you to learn Excel VBA and save hours of time even if you have zero prior experience with programming.

Solve tricky Excel problems and take your work to the next level! Get customized solutions for your unique needs. Save time and gain insights with truly expert Excel solutions from only $97 per task.

Get a clear overview of your project progress using the Excel project timeline. Use it to communicate the big picture, track task progress, and stay on top of your project goals. Stay organized with our project timeline!

Our cheat sheets provide quick and easy reference to commonly used Excel VBA concepts and code snippets.

Unlock new levels of productivity and efficiency with our cheat sheets, and write VBA code like a pro in no time.


Are you looking to upskill and stay ahead of the curve? Excel is a powerful tool that keeps growing in demand. We round up the best online courses for learning Excel.

Are you looking to up your spreadsheet game? Excel is an invaluable tool that can help you stay organized and save time. From data analysis to budgets, Excel can do it all!

Today, having Excel skills is more critical than ever. Those who know how to use Excel are more likely to find higher-paying jobs. And get promoted faster.


Step up your Excel game! Join our free email newsletter and get updates on how to become more awesome at Excel.