Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Unlock Excel VBA and Excel Macros
Bestseller
Rating: 4.7 out of 5(48,353 ratings)
234,956 students

Unlock Excel VBA and Excel Macros

Master Excel VBA and macros from basics to advanced with three complete real-world automation projects
Created byLeila Gharani
Last updated 2/2026
English

What you'll learn

  • Write VBA code from scratch using the object model, correct syntax, and the Visual Basic Editor
  • Automate repetitive Excel tasks using macros, loops, variables, arrays, and error handling
  • Build UserForms and ActiveX controls to create professional data entry interfaces in Excel
  • Use worksheet and workbook events to trigger VBA code automatically based on user actions
  • Automate tasks across Office applications: send Outlook emails with attachments, create Word letters, and export to PowerPoint
  • Build a Table of Contents generator, a Regional Sales Reporting Tool, and an Invoice Generation Tool from scratch
  • Create custom VBA functions usable directly in Excel worksheets alongside standard formulas
  • Debug VBA code confidently using Watch, Locals, and Immediate windows and apply proper error handling

Course content

21 sections172 lectures22h 29m total length
  • Course Structure & Content4:19

    Check out what is included in the course and what you can do with Visual Basic in Microsoft Excel. You'll find examples to Excel tools you can create using VBA. 

  • Important Compatibility & Setup Information4:00
  • Course Resources: Download Course Project Files1:57
  • Course Expectations2:51
  • Course Outline for Quick Reference0:13

Requirements

  • Basic Excel skills required. You should be comfortable navigating worksheets, working with data, and writing simple formulas before starting.
  • Windows PC required. VBA and macros are not fully supported on Mac Excel and the course is taught on Windows.
  • Works with Excel 2010 and above including Excel 2016, Excel 2019, and Microsoft 365.
  • No prior programming or VBA experience needed. The course starts from your very first macro and builds from there.

Description

Most people learn VBA by copying code from Google until something works. This course teaches you why it works, so you can write it yourself.

Understanding the VBA object model, syntax rules, and code structure means you can automate any task, not just the ones you found a solution for online.

This course builds that foundation from the ground up and applies it across three complete real-world tools you build from scratch.


What you'll be able to do after this course:

  • Record, write, and improve macros using the Visual Basic Editor with confidence

  • Navigate the VBA object model to find the right objects, properties, and methods for any task

  • Reference ranges, worksheets, and workbooks correctly across different scenarios

  • Use variables, data types, arrays, and scope to write clean, efficient VBA code

  • Loop through collections with For Each, For Next, Do While, and Do Until

  • Handle errors and debug VBA code using Watch, Locals, and Immediate windows

  • Work with files, folders, and text files including CSV export with custom delimiters

  • Automate pivot tables, Excel tables, and formula updates with VBA

  • Use worksheet and workbook events to trigger code automatically

  • Build UserForms and ActiveX controls for professional Excel interfaces

  • Create custom VBA functions usable directly in Excel worksheets

  • Automate tasks across other Office applications: Outlook emails with attachments, Word letters, PowerPoint exports, and PDF generation

  • Animate and control Excel charts with VBA


Three complete projects built from scratch:

This is where the course separates itself. You don't just learn syntax, you apply it to three professional tools:

Project 1: Table of Contents Generator

Automatically creates a hyperlinked table of contents for any workbook with one click. Includes error handling and personal macro workbook integration so it works across all your files.

Project 2: Regional Sales Reporting Tool

Imports data from multiple files, generates pivot table and hard-coded reports, exports to Excel and CSV, and tracks completed tasks. A full data processing pipeline built in VBA.

Project 3: Invoice Generation Tool

A complete UserForm-based system with searchable list boxes, master data management, invoice creation, PDF export, and automatic Outlook email with attachment. This is production-ready tool development.


What's inside:

  • 20 sections from macro basics to advanced UserForms and Office integration

  • 50+ VBA examples drawn from real client work

  • Activities and projects in every section with solution files

  • Quizzes after key sections to test retention

  • 100+ page downloadable documentation including useful code snippets for ongoing reference

  • Compatible with Excel 2010 and above including Microsoft 365


Taught by Leila Gharani, Microsoft MVP and trusted by 515,000+ students across 11 courses on Udemy.

Enroll now and start automating your first Excel task today.

Who this course is for:

  • Excel users who perform the same manual tasks repeatedly and want to automate them with macros and VBA
  • Analysts, finance professionals, and operations staff who want to build Excel tools their team can use without manual intervention
  • Excel users who have tried copying VBA code from online searches but want to understand how to write and adapt it themselves
  • Developers and power users ready to go beyond formulas and build professional Excel applications with UserForms and Office integration