Excel VBA course online: learn macros by writing them
Six levels from your first macro to reports across several sheets, with a project at the end of each level and a final test. You write every macro yourself, run it in your browser and get feedback right away.
In short: this is a self-paced course with no trainer and no fixed dates. Each lesson explains one topic and then has you write macros that are checked instantly. Level 1 is completely free; from level 2, the first exercise of every lesson is free.
Try it right now
This is what an exercise in the course looks like: the sheet at the top, the code below. Run shows what your macro changes on the sheet, Check tells you whether it is right, on other data too.
Task The macro TransferCustomer should write the customer from A2 to D2 and their city from B2 to E2. One statement per cell, one below the other.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Customer | City | Customer | City | |
| 2 | Carter Bakery | Leeds | |||
| 3 | |||||
| 4 | |||||
| 5 |
What the course covers
The course has six levels. Each ends with a project: a bigger task from office work that you solve in several parts.
- Level 1: First macros. VBA editor and modules, recording a macro and cleaning it up, Range and Cells, variables and data types, MsgBox and InputBox, calculations and joining text, If Then Else. Project: fill in an invoice.
- Level 2: Loops and ranges. For Next, finding the last row, For Each, Do While and Do Until, Select Case, Offset and Resize. Project: commission list.
- Level 3: Sheets, formats and functions. Addressing, adding and renaming worksheets, formatting cells, worksheet functions in VBA, string and date functions, your own functions. Project: monthly report.
- Level 4: Processing data. Copy and paste, deleting and inserting rows, sorting and removing duplicates, searching with Find, writing formulas with VBA, With and faster macros. Project: clean up data.
- Level 5: Advanced. Arrays, Dictionary and Collection, error handling, procedures with arguments, debugging, events. Project: customer report.
- Level 6: Real work and final test. Combining sheets, creating a report with a macro, enabling macros and saving safely. The final project, then the final test with a certificate.
Your learning path
The lessons build on each other, but you can open any of them directly. With a free account, your solved exercises are saved and the check marks show your progress on every device.
-
Level 1: First macros
-
Level 2: Loops and ranges
-
Level 3: Sheets, formats and functions
-
Level 4: Processing data
-
Level 5: Advanced
-
Level 6: Real work and final test
Start with lesson 1 Create a free account
How practicing in the browser works
Excel for the web does not run macros. So your code runs on our server, in a re-creation of VBA with a worksheet. You see the sheet before and after the macro, with changed cells highlighted. MsgBox shows up as a message box, Debug.Print in the Immediate window. With Step through you go through the macro line by line, like F8 in the VBA editor, and watch the variables in the Locals window.
Check compares the sheet after your macro with the expected result. What counts is the result, not whether you match the model answer word for word. Then your macro runs again on other, hidden data: more rows, different values. A loop that stops at a fixed row, or a result typed in by hand, gets caught. Errors use the VBA editor's wording, with a hint about the most common cause.
Hints come in three steps, the solution only when you ask for it. After solving, many exercises show other ways to solve them. To experiment freely, use the VBA online editor.
Who the course is for
- Excel users who want to get rid of routine work: cleaning up exports, creating reports per department, tidying lists.
- Finance, accounting, sales, HR: long lists, recurring reports, reports at the push of a button.
- New to programming: VBA is a good first language because you see every result on the sheet right away.
- Job seekers: many job ads ask for VBA skills. The final test with certificate shows yours.
Excel basics help: cell references, simple formulas, sorting and filtering. You can learn them in the Excel course.
Course, training or classroom seminar?
Classroom training usually runs one to five days in a row, with a trainer and a group. This course is the opposite: you learn in small steps whenever you like, and you write far more macros yourself than fit into a day of training. Companies can get team seats with a shared join link.
FAQ
How much does the course cost?
Every lesson is free to read, and level 1 with all its exercises is free. For the other exercises, the projects and the final test you need Premium, which covers every subject. Prices are on the pricing page.
Do I need Excel?
Not for the course. For your own macros you need Excel for Windows or Mac. How to take a macro from the course into Excel is covered in Basics.
Is there a certificate?
Yes. Once you have solved every lesson in levels 1 to 5 you can take the final test. Pass it and you get a LearnThisNext certificate with a verification link. It is not a Microsoft certification.
Can I start at level 3?
Yes, you can open any lesson directly. For the final test, though, every lesson in levels 1 to 5 counts. If you know the basics, you will solve the early exercises quickly.