VBA projects: six practice projects in the VBA course
Every level of the VBA course ends with a project. Instead of a single task you build macros for work that really lands on office desks: an invoice, a commission run, a monthly report. Here are all six projects and what you should know before you start each one.
In short: six projects with three parts each, every part a macro of its own. Each project task counts three times as much as a single exercise. The level 1 project is free; the projects from level 2 on are part of Premium.
What makes a project different
In the lessons you practice one building block at a time: Range and Cells first, then loops, later sheets or the Dictionary. At work nobody asks for a building block. Sales wants a commission list, finance wants the month-end close. Which blocks you need, and in which order, is up to you to work out.
That is what the projects train. The task describes what the sheet should look like at the end, and you plan the steps. As everywhere in the course, the check looks at the result on the sheet, not at the wording of your macro, and it also runs on data you cannot see: different values, more rows. A macro that only happens to fit the visible data fails.
The six projects at a glance
1. Fill in an invoice
Three macros finish an invoice: work out the line amounts and totals, fill in the header with the next invoice number and a due date, and add the right payment note at the bottom. All you need is Range, variables, calculations and If from level 1.
Wraps up Level 1: First macros. Prerequisites: Basics: editor, module, first macro, Record a macro and clean it up, Range and Cells, Variables and data types, MsgBox and InputBox, Calculations and joining text, If Then Else. Access: free.
2. Commission list
The monthly commission run for a sales team: the rate from a tier table with Select Case, each rep's commission, a total row and a bonus for the top seller. The list is a different length every month, so every macro has to find the last row itself.
Wraps up Level 2: Loops and ranges. Prerequisites: For Next loop, Find the last row, For Each, Do While and Do Until, Select Case, Offset and Resize, plus everything from the earlier levels. Access: with Premium.
3. Monthly report
An order list becomes a monthly report with one sheet per region and a summary of sales, order count and share. You add sheets, distribute the orders with a loop and build the summary with SumIf and CountIf.
Wraps up Level 3: Sheets, formats and functions. Prerequisites: Working with worksheets, Formatting cells, Worksheet functions in VBA, String functions, Dates and times, User-defined functions, plus everything from the earlier levels. Access: with Premium.
4. Clean up data
A customer export full of gaps, stray spaces and duplicates becomes a clean, sorted list. You delete blank rows, strip extra spaces, remove duplicates, sort, and flag blocked customers that you look up with Find.
Wraps up Level 4: Processing data. Prerequisites: Copy and paste, Delete and insert rows, Sort and remove duplicates, Searching with Find, Writing formulas with VBA, With and faster macros, plus everything from the earlier levels. Access: with Premium.
5. Customer report
A long list of individual sales turns into a short summary per customer. The macro reads the data into an array, groups it with a Dictionary and copes with messy data and last month's leftovers.
Wraps up Level 5: Advanced. Prerequisites: Arrays, Dictionary and Collection, Error handling, Procedures with arguments, Debugging, Events (Worksheet_Change), plus everything from the earlier levels. Access: with Premium.
6. Final project
A month-end close like the one in many finance teams: three branches send their entries, and you turn them into one clean list, a summary per cost center and a budget comparison. Each part draws on several levels of the course.
Wraps up Level 6: Real work and final test. Prerequisites: Combine sheets, Create a report with a macro, Enable macros and save safely, plus everything from the earlier levels. Access: with Premium.
After the final project comes the final test covering every level. Pass it and you get a LearnThisNext certificate with a verification link.
Try the first project
The level 1 project is free. Here is its first part: the line amounts and totals of an invoice. If you get stuck, the three hints below the task will help.
Task Part 1: work out the lines and the totals. D11 to D13 each get quantity times price, D15 the sum of the three amounts (net), D16 the tax (net times the tax rate in G5) and D17 the total (net plus tax). Write numbers into the cells, not formulas.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Invoice | ||||||
| 2 | |||||||
| 3 | Invoice no. | Last invoice no. | 1043 | ||||
| 4 | Date | Credit limit | 5,000 | ||||
| 5 | Customer | Hoffman Electrical Ltd | Tax rate | 20.00% | |||
| 6 | Customer type | Regular | |||||
| 7 | Payment terms (days) | ||||||
| 8 | Due date | ||||||
| 9 | |||||||
| 10 | Item | Qty | Price | Amount | |||
| 11 | LED panel 2 x 2 ft | 4 | 89.00 | ||||
| 12 | Breaker panel | 2 | 249.50 | ||||
| 13 | Cable trunking 6 ft | 10 | 14.50 | ||||
| 14 | |||||||
| 15 | Net | ||||||
| 16 | Tax | ||||||
| 17 | Total |
How to approach a project
- Read the task twice. Which cells should be filled at the end, which macro name is required, what exact text goes into a message?
- Look at the data. Where does the list start, is there a header row, are there blank cells or text in a number column?
- One row first, then the loop. Write the statement for row 2, run it and check the sheet. Only then wrap the loop to the last row around it.
- Step through with F8. If something goes wrong, run the macro line by line and watch the variables.
- Think of the hidden data. No fixed row numbers, no typed-in results. What happens with blank cells or a longer list?
Points and access
Each part of a project counts three times as much as a single exercise, because you solve several steps together. All of level 1 is free, its project included. From level 2 on, the first exercise of every lesson is free. The projects from level 2 on are fully part of Premium, even when they are the first task on their page.
FAQ
Do I have to finish every lesson of a level first?
No. You can open any project at any time, from level 2 on with Premium. Without the lessons of that level it gets hard, though, because each project combines exactly those building blocks. The prerequisites above show which ones.
Is there only one right solution?
No. The check looks at the sheet after your macro. For Next or For Each, a helper variable or none: all fine, as long as the result is right. If a part asks for a particular command, the task says so.
Do the project macros run in real Excel?
Yes. The projects only use commands from the course, with no files or other programs involved. Try your own macros on a copy of the file first, because what a macro changes cannot be undone with Ctrl+Z.
Can I redo a project?
Yes, as often as you like. As with all exercises, points are awarded the first time you solve it.