Unlock Excel VBA and Excel Macros (Udemy.com)
Master Excel VBA and macros from basics to advanced with three complete real-world automation projects
Created by: Leila Gharani
Last updated February 2026
Our take
Based on the ratings of 48,622 students, a sample of their written reviews and the syllabus, as the course stood in February 2026. No course pays to be reviewed.
Leila Gharani's course takes Excel users from a first recorded macro to UserForms, events and Outlook automation. It runs about 22.5 hours over 172 lectures and was last updated in February 2026, so it is current. The pitch is understanding the object model instead of pasting code from search results. It is taught on Windows, and the requirements say Mac Excel does not fully support VBA. Basic Excel skills are enough, since no programming background is assumed. Over 238,000 students have taken it.
Reviewers praise the clarity and the pace. One says the teacher knows learners need the concepts behind the code, and another calls the pace slow enough to digest complex topics. One student says the course material helped them build an ERP in Excel. The complaints centre on learning to write code independently. A three-star reviewer, a beginner, follows the explanations but cannot write correct code alone during the practice activities. Two reviewers at two stars say they could not learn to write code themselves, or found the teaching more top down than a training approach. Still, only about 1 percent of the 48,622 ratings are one or two stars.
At this length it is a real time commitment, and the beginner comments suggest pausing to practice instead of just watching. The three projects, the solution files and the 100+ page notes give learners something to keep and reuse. Reviewers who liked it were mostly after more than recorded macros, and wanted to understand the code. Complete newcomers should plan to work through the activities on their own rather than only follow along.
Pros
- Builds a table of contents tool, a sales report tool and an invoice app with PDF and Outlook
- Explains the object model and why code works, not just snippets to copy
- Reviewers say the pace is slow enough to follow complex topics
- Updated February 2026, with solution files and 100+ pages of notes included
Cons
- Some beginners follow the lectures but cannot write code alone in the activities
- Windows only, since Mac Excel does not fully support VBA
- Long at 22.5 hours, so it needs steady weekly time to stick
Leila is such a terrific tutor, she understands that the trainee not only needs to know how to program, but to understand the basic concepts behind it.
Listed for all levels. Basic Excel is needed, no coding, but true beginners say the practice work is hard.
What you will 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 sections · 172 lectures · 23 hours of video 3 quizzes, 28 articles
- 1Introduction & Scope 2 free previews5 lectures · 13 min
- 2Your First Macro 1 free preview9 lectures · 1 quiz · 55 min
- 3The Object Model 1 free preview8 lectures · 1 quiz · 46 min
- 4Referencing Ranges, Worksheets & Workbooks with VBA 3 free previews10 lectures · 1.6 hours
- 5Working with Variables 1 free preview7 lectures · 1 quiz · 36 min
- 6Looping through Collections & Making Decisions10 lectures · 59 min
- 7Useful Built-in Functions 1 free preview8 lectures · 1.1 hours
- 8Debugging, Error Handling & Procedure Scope9 lectures · 1.1 hours
- 9Main Project #1: Create a Tool to Automate Table of Contents 1 free preview7 lectures · 44 min
- 10Looping in VBA (Controlling the Flow of Code)12 lectures · 1.5 hours
- 11Working with Arrays9 lectures · 52 min
- 12Working with Files, Folders & Text Files 1 free preview9 lectures · 1.1 hours
- 13Excel Tables, Formulas & Pivot Tables7 lectures · 58 min
- 14Main Project #2: Sales Regional Reporting Tool 1 free preview11 lectures · 2 hours
- 15Interacting with Other Applications (Word, PowerPoint etc.)6 lectures · 1.1 hours
- 16Workbook and Worksheet Events8 lectures · 58 min
- 17Working with Userforms & ActiveX Controls11 lectures · 1.9 hours
- 18Main Project #3: Invoice Generation Tool11 lectures · 2.7 hours
- 19Create your own Custom Functions8 lectures · 40 min
- 20Working with Charts5 lectures · 43 min
- 21Summary & Final Words2 lectures · 3 min
Who it is for
The instructor says it suits
- 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
What you need before you start
- 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.
Quality Score
Overall Score : 94 / 100
Course 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.
Instructor Details
- 4.7 Rating
48,622 Reviews
Leila Gharani
Leila Gharani, a Microsoft MVP (most valuable professional), has one mission: to make data work for you. With her clear and practical teaching style, she helps professionals master Excel, Google Sheets, and other tools to create impactful reports, automate tasks, and solve real-world problems - quickly and confidently.
Leila knows the challenges of juggling complex data and tight deadlines because she’s been there. With over 15 years of experience in Finance and IT, she’s streamlined systems, tackled tough data problems, and delivered results for global companies.
Her courses are designed with your success in mind. You’ll find step-by-step lessons, relatable examples, and hands-on exercises that make learning simple and fun. Every concept is tied to real-world applications so you can start seeing results immediately.
Through her YouTube channel and courses, Leila has empowered thousands of learners worldwide to improve their skills, impress at work, and achieve their career goals.
If you’re ready to take control of your data, save time, and stand out as a professional, Leila’s courses are here to help you succeed.
More courses by Leila Gharani
Excel Essentials for the Real World (Complete Excel Course) (2026)
4.7 (26,494 Reviews)
Provider: Udemy
Time: 11h
$22.99
Advanced Excel - Top Excel Tips & Formulas (2026)
4.6 (14,178 Reviews)
Provider: Udemy
Time: 7.1h
$19.99
Google Sheets - The Comprehensive Masterclass (2026)
4.7 (13,297 Reviews)
Provider: Udemy
Time: 14.3h
$109.99
Excel Charts - Visualization Secrets for Impressive Charts (2026)
4.7 (7,068 Reviews)
Provider: Udemy
Time: 8.5h
$13.99
Master NEW Excel Functions in Office 365 & Office 2021+
4.8 (5,262 Reviews)
Provider: Udemy
Time: 7.1h
$15.99
Reviews
By Zaveri Nawaz on 6/4/2026
Yes i am able to learn Macros and VBA more nicely rather than just looking at the code and trying to understand it on my own as i never learned the basics and directly jumped on advance VBA codes
By Fabricio Emir Escobar Córdova on 5/28/2026
La profesora es muy clara en sus explicaciones y sus ejemplos son suficientemente complicados y aplicables para lo que lo necesitaba. Apoyado del material del curso pude programar un ERP en Excel. Recomiendo mucho a la profesora y este curso. Gracias. The teacher´s lectures are very clear and the examples she shows are hard and aplicable enough for what I needed. With aid of the course material I was capable of programmieng an ERP in Excel. I reccommend 100 % the teacher and this course. Thank you, Miss Leila.
By Kristyna Kuruc on 5/25/2026
I love this course. Leila is such a terrific tutor, she understands that the trainee not only needs to know how to program, but to understand the basic concepts behind it. Leila also provides effective visuals, just love it!
By Morayo Alabi on 5/8/2026
I absolutely loved this course! The teaching style was engaging, the lessons were well-organized, and every topic was explained with clear, detailed step-by-step guidance. It made learning VBA both enjoyable and easy to follow. Overall, it was a very interesting and rewarding learning journey. Thank you for such a great course!
By Hans van derWaal on 3/19/2026
For me I am 82 this course is a refresh for my memory. As I did a lot of VBA programming during my working days in the nineties and the beginning of 2000. The amazing thing that in those days there was a lot of talk that it was outdated and MS would abandon it and replace it. Now we are about twenty five years later and it is still around -like me- and that all that in my eyes yuppie talk has gone. You can do in combination with Excel amazing things with it. I enclose an example of its power in a workbook that I will upload at notes. It is in Dutch and the subject is different depreciation methods and the economic life span of a machine. You can change the variables in one of the first sheets and if you click on the calculator in the diffent sheets you get a new calculation. The code is of course in English and when you click on Macro in the developer tab you can see the code in the different modules. As far as the teacher is concerned I did another course which was excellent and the start of this course is also very promising. She is amazing punctial.
By Otar Panjikidze on 2/17/2026
As a beginner I can tell that some topics in some sections are difficult to understand. I can't realize myself which method should I choose and how can I imagine it. Without daily practice it is impossible to remember all of this. I see and listen explanations carefully but when it comes to practice activity I can't write correct code by myself. :-(
By Subrata biswas on 1/3/2026
Thank you Leila gharani ma'am for teaching any concept in such a easy way. My recommendation will be for future students if you will stuck anywhere with any new concept, try to watch again the video for better understanding and practise yourself. I am sure you will definitely get into that.
By Goh Wee Hong on 12/29/2025
The concept and framework taught in this class really benefit me in designing my own VBA code to solve my workplace problem. I also learnt new things both in excel and VBA. Just that the milestone project is a bit fast pace.
By Hemanth Vallaboja on 12/14/2025
Really well-explained and easy to follow The course is very clear and well structured. Concepts are explained in a simple way, and there’s plenty of practice to actually apply what you learn. The lectures are high quality, easy to understand, and the examples are very practical. I also liked how smoothly the lessons flow from basics to advanced topics without feeling rushed or confusing. Overall, a great course for anyone who wants to get comfortable with Excel VBA and Macros. Highly recommend it.
By Ioannis Raptis on 11/8/2025
The course had a ton of content that guided you from the basics to advanced features, there is a lot to take in, so i would personally advise you to pause the videos regularly, digest all info and then moving on. As Leila also suggested, the more experience a user has with MS Excel in general, the more features of VBA they can unlock. Many thanks for this course, can't wait to apply everything i learnt to everyday projects!









