Skip to content
Felix
  • Topics
    • My List
    • Felix Guide
    • Asset Management
    • Coding and Data Analysis
      • Data Analysis and Visualization
      • Financial Data Tools
      • Python
      • SQL
    • Credit
      • Credit Analysis
      • Restructuring
    • Financial Literacy Essentials
      • Financial Data Tools
      • Financial Math
      • Foundations of Accounting
    • Industry Specific
      • Banks
      • Chemicals
      • Consumer
      • ESG
      • Insurance
      • Oil and Gas
      • Pharmaceuticals
      • Project Finance
      • Real Estate
      • Renewable Energy
      • Technology
      • Telecoms
    • Introductory Courses
    • Investment Banking
      • Accounting
      • Financial Modeling
      • M&A and Divestitures
      • Private Debt
      • Private Equity
      • Valuation
      • Venture Capital
    • Markets
      • Economics
      • Equity Markets and Derivatives
      • Fixed Income and Derivatives
      • Introduction to Markets
      • Options and Structured Products
      • Other Capital Markets
      • Securities Services
    • Microsoft Office
      • Excel
      • PowerPoint
      • Word & Outlook
    • Professional Skills
      • Career Development
      • Expert Interviews
      • Interview Skills
    • Risk Management
    • Transaction Banking
    • Felix Live
  • Pathways
    • Investment Banking
    • Asset Management
    • Equity Research
    • Sales and Trading
    • Commercial Banking
    • Engineering
    • Operations
    • Private Equity
    • Credit Analysis
    • Restructuring
    • Venture Capital
    • CFA Institute
  • Certified Courses
  • Ask An Instructor
  • Support
  • Log in
  • Topics
    • My List
    • Felix Guide
    • Asset Management
    • Coding and Data Analysis
      • Data Analysis and Visualization
      • Financial Data Tools
      • Python
      • SQL
    • Credit
      • Credit Analysis
      • Restructuring
    • Financial Literacy Essentials
      • Financial Data Tools
      • Financial Math
      • Foundations of Accounting
    • Industry Specific
      • Banks
      • Chemicals
      • Consumer
      • ESG
      • Insurance
      • Oil and Gas
      • Pharmaceuticals
      • Project Finance
      • Real Estate
      • Renewable Energy
      • Technology
      • Telecoms
    • Introductory Courses
    • Investment Banking
      • Accounting
      • Financial Modeling
      • M&A and Divestitures
      • Private Debt
      • Private Equity
      • Valuation
      • Venture Capital
    • Markets
      • Economics
      • Equity Markets and Derivatives
      • Fixed Income and Derivatives
      • Introduction to Markets
      • Options and Structured Products
      • Other Capital Markets
      • Securities Services
    • Microsoft Office
      • Excel
      • PowerPoint
      • Word & Outlook
    • Professional Skills
      • Career Development
      • Expert Interviews
      • Interview Skills
    • Risk Management
    • Transaction Banking
    • Felix Live
  • Pathways
    • Investment Banking
    • Asset Management
    • Equity Research
    • Sales and Trading
    • Commercial Banking
    • Engineering
    • Operations
    • Private Equity
    • Credit Analysis
    • Restructuring
    • Venture Capital
    • CFA Institute
  • Certified Courses
Felix
  • Data
    • Company Analytics
    • My Filing Annotations
    • Market & Industry Data
    • United States
    • Relative Valuation
    • Discount Rate
    • Building Forecasts
    • Capital Structure Analysis
    • Europe
    • Relative Valuation
    • Discount Rate
    • Building Forecasts
    • Capital Structure Analysis
  • Models
  • Account
    • Edit my profile
    • My List
    • Restart Homepage Tour
    • Restart Company Analytics Tour
    • Restart Filings Tour
  • Log in
  • Ask An Instructor
    • Email Our Experts
    • Felix User Guide
    • Contact Support

Introduction to Excel VBA

An overview of Excel Visual Basic for Applications and an introduction to the macro recorder. Navigate around the Visual Basic Editor and record and run macros to automate repetitive procedures.

Unlock Your Certificate   
 
0% Complete

7 Lessons (23m)

Show lesson playlist
  • Description & Objectives

  • 1. Introduction to Excel VBA

    01:30
  • 2. The Excel VBA Environment

    05:24
  • 3. The Macro Recorder

    02:23
  • 4. The Macro Recorder Workout

    01:55
  • 5. Running Macros Workout

    05:10
  • 6. The VBA Editor Workout

    06:11
  • 7. The Macro Recorder Summary

    01:14

Next: Objects, Properties and Methods

Running Macros Workout

  • Notes
  • Questions
  • Transcript
  • 05:10

Demonstration of a number of methods to execute VBA code or run a macro.

Downloads

Running Macros Workout EmptyRunning Macros Workout Full

Glossary

Excel modeling
Back to top
Financial Edge Training

© Financial Edge Training 2025

Topics
Introduction to Finance Accounting Financial Modeling Valuation M&A and Divestitures Private Equity
Venture Capital Project Finance Credit Analysis Transaction Banking Restructuring Capital Markets
Asset Management Risk Management Economics Data Science and System
Request New Content
System Account User Guide Privacy Policy Terms & Conditions Log in
Transcript

When it comes to executing VBA code or running a macro, there are a number of options available.

A macro can be run by the macros button in the developer ribbon to view the macros ALT F 8 keyboard shortcuts.

It can be run by an assigned shortcut key, and we can create a button on the Excel worksheet that will run the macro.

Let's take a look at each of these methods of running a macro.

Let's take a look at some of the options that we have available to us to run our macros.

First of all, we need to record a macro and the workout requires us to record a macro to enter our name into cell B 8.

In order to record a macro developer record macro, let's call this one enter name one.

I won't assign a keyboard shortcut yet and will store the macro in this workbook.

Once I click okay, the macro recorder will record every cell that I select and it will record all of the information that I enter into those cells.

Select cell B 8.

Enter my name, and then press enter.

We can stop the macro recorder developer and stop recording.

Let's look at some methods that we have available to us to run that macro.

To ensure that the macro is running we'll delete the contents of cell B 8.

Select another cell, and then we can see if the macro is running the first option.

Develop a tab, view macros. There's our macro.

Enter, enter name one, and press run, and we can see that my name is entered into cell B 8.

This is a perfectly good method to run a macro, but potentially not particularly user friendly.

Let's take a look at another option.

We can assign a keyboard shortcut.

Go to developer view our list of macros.

Enter to name one, our macro is selected.

Clicking on the options button allows us to assign a shortcut key.

I'm going to assign the shortcut, key control, and W entering W and pressing.

Okay, and then closing the window will mean that in this file, when I press Ctrl and W, my macro enter, enter name one will execute.

Let's test this out. Clearing out the cell contents of cell B 8 and choosing another cell on our spreadsheet control and W executes the macro and enter name one enters my name into cell B 8.

This is a little more efficient.

The downside here is that another user may not be aware of the shortcut key and potentially override an existing shortcut.

The final option that we'll look at is to use a form control button.

In order to do that, let's go to the developer menu and we insert the button via the insert controls button.

When we expand that menu, we can see that the form control button is here at the top left.

Let's click on the form control button.

We can see the cross air Hold down the left mouse key and draw our button.

Once that button is drawn, a window is then presented to us.

That requires us to assign a macro to the button.

We're going to assign the macro enter, name one and press okay.

I can also change the text on button one by clicking into the button, deleting button one and entering new text.

Let's click out of the button and test this hovering over the button.

I can see the pointer, click on the button.

The macro executes and my name is entered into cell B 8.

This is a great option to provide our users with additional interactivity.

Content Requests and Questions

You are trying to access premium learning content.

Discover our full catalogue and purchase a course Access all courses with our premium plans or log in to your account
Help

You need an account to contact support.

Create a free account or log in to an existing one

Sorry, you don't have access to that yet!

You are trying to access premium learning content.

Discover our full catalogue and purchase a course Access all courses with our premium plans or log in to your account

You have reached the limit of annotations (10) under our premium subscription. Upgrade to unlock unlimited annotations.

Find out more about our premium plan

You are trying to access content that requires a free account. Sign up or login in seconds!

Create a free account or log in to an existing one

You are trying to access content that requires a premium plan.

Find out more about our premium plan or log in to your account

Only US listed companies are available under our Free and Boost plans. Upgrade to Pro to access over 7,000 global companies across the US, UK, Canada, France, Italy, Germany, Hong Kong and more.

Find out more about our premium plan or log in to your account

A pro account is required for the Excel Add In

Find out more about our premium plan

Congratulations on completing

This field is hidden when viewing the form
Name(Required)
This field is hidden when viewing the form
Rate this course out of 5, where 5 is excellent and 1 is terrible.
Were the stated learning objectives met?(Required)
Were the stated prerequisite requirements appropriate and sufficient?(Required)
Were the program materials, including the qualified assessment, relevant and did they contribute to the achievement of the learning objectives?(Required)
Was the time allotted to the learning activity appropriate?(Required)
Are you happy for us to use your feedback and details in future marketing?(Required)

Thank you for already submitting feedback for this course.

CPE

What is CPE?

CPE stands for Continuing Professional Education, by completing learning activities you earn CPE credits to retain your professional credentials. CPE is required for Certified Public Accountants (CPAs). Financial Edge Training is registered with the National Association of State Boards of Accountancy (NASBA) as a sponsor of continuing professional education on the National Registry of CPE Sponsors.

What are CPE credits?

For self study programs, 1 CPE credit is awarded for every 50 minutes of elearning content, this includes videos, workouts, tryouts, and exams.

CPE Exams

You must complete the CPE exam within 1 year of accessing a related playlist or course to earn CPE credits. To see how long you have left to complete a CPE exam, hover over the locked CPE credits button.

What if I'm not collecting CPE credits?

CPE exams do not count towards your FE certification. You do not need to complete the CPE exam if you are not collecting CPE credits, but you might find it useful for your own revision.


Further Help
  • Felix How to Guide walks you through the key functions and tools of the learning platform.
  • Playlists & Tryouts: Playlists are a collection of videos that teach you a specific skill and are tested with a tryout at the end. A tryout is a quiz that tests your knowledge and understanding of what you have just learned.
  • Exam: If you are collecting CPE points you must pass the relevant CPE exam within 1 year to receive credits.
  • Glossary: A glossary can be found below each video and provides definitions and explanations for terms and concepts. They are organized alphabetically to make it easy for you to find the term you need.
  • Search function: Use the Felix search function on the homepage to find content related to what you want to learn. Find related video content, lessons, and questions people have asked on the topic.
  • Closed Captions & Transcript: Closed captions and transcripts are available on videos. The video transcript can be found next to the closed captions in the video player. The transcript feature allows you to read the transcript of the video and search for key terms within the transcript.
  • Questions: If you have questions about the course content, you will find a section called Ask a Question underneath each video where you can submit questions to our expert instructor team.