Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Excel VBA Programming - The Complete Guide
Rating: 4.7 out of 5(6,471 ratings)
76,418 students

Excel VBA Programming - The Complete Guide

Automate your Microsoft Excel workflow, accelerate your productivity, and master programming with VBA! Beginners welcome
Created byBoris Paskhaver
Last updated 1/2026
English

What you'll learn

  • Automate tasks and procedures in Excel using Visual Basic for Applications (VBA)
  • Utilize the objects in the Excel Object Model to emulate user actions in Excel
  • React dynamically to user events like entering a cell value or opening a workbook
  • Feel comfortable with the fundamentals of computer programming

Course content

18 sections159 lectures17h 58m total length
  • Introduction13:08

    In this lesson, we introduce Visual Basic for Applications (VBA), a powerful language for automating operations in Microsoft Office applications. We discuss:

    • the benefits offered by the technology
    • the tools and features available in VBA
    • a brief history of the language including its precursors Basic and Visual Basic
    • the prerequisites for the course
  • About Me0:56

    Get to know a little about your instructor.

  • Download Course Materials0:42

    This lesson contains all the Excel worksheets used during the recording of the course. Although it's a good idea to reference the material, the best strategy is to code alongside the videos to practice these concepts yourself.

  • Enable the Developer Tab7:06

    The Developer Tab is a secret Tab on the Ribbon that includes several options for working with VBA. Users can access the Visual Basic Editor, enable the Macro Recorder, and display a list of public macros. In this lesson, we expose the Developer Tab and introduce some of its available commands.

  • Excel File Types4:00

    There are dozens of file types available in Excel. In order to work with macros, we need to save our files in a special format called .xlsm. In this lesson, we introduce an option for defaulting to a .xlsm format upon saving.

  • Macro Security8:43

    Macros have been used to package malicious code in the past. In this lesson, we explore the security options built into Excel that prevent macro code from executing automatically. We also add a directory to a Trusted Locations list of folders to mark the files in it as safe to run.

  • The Macro Recorder15:12

    The Macro Recorder is a powerful tool that converts your interface actions (i.e. clicks, navigations, aesthetic changes) into valid VBA code. In this lesson, we discuss the merits (and drawbacks) of the Macro Recorder and explore some of the code that it generates.

  • Record Macro to Change Worksheet Orientation
  • Absolute vs. Relative References I8:12

    The Macro Recorder can record with absolute or relative references. 

    Absolute references (the default recording option) target specific cells (i.e. B1) -- the recorder is more concerned with the final destination.

    Relative references record changes relative to a cell -- the recorder is more concerned with the steps of travel from a starting position.

    In this lesson, we record one macro with each type of reference and compare the generated code in the Visual Basic Editor.

  • Absolute vs. Relative References II8:14

    In this lesson, we continue our exploration of absolute vs relative references by recording a macro that deletes a row from the worksheet. 

    Absolute references explicitly target a specific row each time, which defeats the purpose of the macro. Relative references allow us to fix this bug.

  • The Visual Basic Editor9:01

    In this lesson, we explore the components of the Visual Basic Editor, including the

    • Project Explorer, which lists all open workbooks and worksheets as well as all modules (containers for code).
    • Properties Window, which can be used to get or set properties on objects with Excel. An object represents an entity in the program (i.e. a Workbook, Worksheet, module, etc.)
    • Immediate Window, a playground for executing single lines of VBA code
    • Code Editor, where the developer writes the actual macro code
  • VBA Basics

Requirements

  • A modern version of Microsoft Excel for Windows (2016 is strongly recommended)
  • Intermediate knowledge of popular Excel features (functions, PivotTables, charts, etc.)
  • Basic knowledge of data types (numbers, strings, Booleans, dates)
  • A desire to learn!

Description

Welcome to Excel VBA Programming - The Complete Guide, Udemy's most comprehensive VBA course!

Visual Basic for Applications (VBA) is a powerful language built on top of popular Microsoft Office applications like Excel, Access, and Outlook. It allows developers to write procedures called macros that perform automated actions. Anything that you can do in Excel, you can automate with VBA!

Over the course of more than 18 hours of content, we'll cover VBA from the ground up, beginning with the fundamentals and proceeding to advanced topics including:

  • The Excel Object Model
  • The Visual Basic Editor
  • Objects and Methods
  • Variables and Data Types
  • Writing Your Own Procedures
  • The Workbooks and Workbook Objects
  • The Worksheets and Worksheet Objects
  • Range References
  • Range Actions
  • Conditional Logic
  • Iteration
  • Alerts
  • Configuring Excel Functionality
  • Custom Functions
  • Arrays
  • Debugging
  • Even Procedures
  • User Forms

In addition to the video content, the course is packed with dozens of quizzes, challenges, and assignments to test your knowledge of your material as you progress.

No programming experience is required -- complete beginners are more than welcome! VBA is a great language to start with because you can master the fundamentals of programming in a familiar work environment.

No extra software is necessary - VBA is bundled with all modern versions of Excel.

Excel is the world's most popular spreadsheet software and is available on over 750 million computers worldwide. Whether you use it for professional or personal reasons, VBA can help you remove the redundancy in your workflow and accelerate your productivity drastically!

Thanks for checking out the course!

Who this course is for:

  • Spreadsheet users who want to automate their daily workflow
  • Business analysts who want to remove redundancy from their common tasks
  • Excel users who are curious about exploring programming in a familiar work environment