The Complete Excel Course with AI Integration
Excel macros and VBA for team leaders
Every week the team's sheets come back filled in a little differently by each person, and checking them row by row before the report goes up falls to the team leader. The Complete Excel Course with AI Integration hands that chore to FormatWizard, one of its industry-standard projects. The lessons gathered here run from a first recorded macro to a VBA checker that names each fault beside its row, colours the cell to fix and runs from a shortcut.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Record the formatting the weekly report needs once, with relative references, and replay it on any row from a keyboard shortcut or a toolbar button.
- Keep a tidy-up macro in the Personal Macro Workbook so it is ready in every file the team sends, and save the team's template as a macro-enabled workbook so its code survives.
- Write a VBA loop that walks every row of the team's sheet down to the last used one, blank rows included, and flags a missing name or site.
- Build one message per row that names every fault it has, and colour the cell to fix using an RGB colour set through Interior.Color.
- Flag entries in an hours or units column that are not numbers, such as a word, an N/A or a stray character, with IsNumeric.
- Clear last week's flags before each run and join every check into one macro with an error handler that reports what went wrong.
- See what the code reads, printed to the Immediate window by Debug.Print, before it writes a single flag on the live sheet.
Projects
What you will build.
The course has 14 industry-standard projects. These two matter most here.
-
Project 11
FormatWizard
One click that checks a whole sheet for you.
Built on a sales sheet with region, salesperson and per-unit columns, it hands a team leader the checker for the weekly team sheet: last week's flags cleared, every row tested for a missing name or site and for a non-number, each fault written beside its row and coloured, all run from a single macro.
-
Project 07
TaskFlow
One sheet that shows what is done, what is late and what is urgent.
Built for tasks, it supplies the guard rails a checked team sheet needs around it: drop-down lists that keep a status to the words you allow, and a protected sheet whose locked cells hold the layout the macro relies on.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 17 of them, 1 h 16 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 136 Excel macros and VBA for beginners
Start at Lesson 136: FormatWizard opens with recording, so the first macros need no code at all, only a sheet you already work in. If formulas and tables still feel new, build them first from Lesson 28 and Lesson 19, and anyone opening Excel for the first time takes it from Lesson 1. Recording macros already? Open the editor at Lesson 141 and move straight into written VBA.
17 of 186 lessons · 1 h 16 min
14 VBA and macros in Excel: FormatWizard Macros without code: what a macro and VBA are, a first recording with a name and a shortcut, relative references so one recording works on whichever row you start from, the Developer tab and a toolbar button, and the macro-enabled file format that keeps the code inside the team's workbook.
- 136 Start here Excel macros and VBA for beginners What macros are, the FormatWizard project 3 min
- 137 Record your first Excel macro Name, run and use absolute references 6 min
- 138 Relative references in Excel macros Make recorded macros dynamic 4 min
- 139 Developer Tab in Excel Run macros from a button and the quick access toolbar 4 min
- 140 Save macros in Excel Macro-enabled workbooks and the XLSM file format 3 min
14 VBA and macros in Excel: FormatWizard Into the VBA editor: its window and modules, macro security and the Enable Content bar your colleagues will meet, a first line of code that names the worksheet to work on, declared variables, how a Sub that acts differs from a Function that answers, and a reusable function that locates the final row in use however long the sheet has grown.
- 141 The VBA Editor in Excel Open it with Alt+F11 and learn the workspace 4 min
- 142 Working in the VBA editor Macro security, trust settings, switching to Excel 6 min
- 143 Your first VBA code Modules, worksheets, rows, columns and formatting 4 min
- 144 VBA variables and data types Sub vs function for Excel beginners 6 min
- 145 VBA functions in Excel Build GetLastUsedRow with find and exit function 5 min
14 VBA and macros in Excel: FormatWizard The checks themselves: old flags cleared before a run, a For Next loop testing every row for a missing value, If Else building one message per row from several checks, the faulty cell coloured with RGB, and IsNumeric marking any entry in a number column holding something other than a number. The sheet is sales data; a weekly team sheet takes the same checks.
- 146 Clear old flags with VBA Reset messages and fill colours with if statements 5 min
- 147 For Next loop in VBA Flag missing region values in Excel 4 min
- 148 VBA If Else and loops Check missing sales data and build a FlagText message 5 min
- 149 Highlight cells with VBA Interior.Color and RGB for missing data 5 min
- 150 IsNumeric in VBA Validate unit price and amount data types in Excel 7 min
14 VBA and macros in Excel: FormatWizard Making it dependable: the Immediate window, fed by Debug.Print, to watch what the code reads before it writes anything, then one master routine that runs every check in order, faster with screen updating off, with an error handler that explains a failure instead of stopping dead.
- 151 Debugging VBA for beginners Debug.Print and the Immediate window 5 min
- 152 Complete Excel validation macro One VBA subroutine with an error handler 3 min
Instructors
Who teaches it.
Instructor, Excel with AI
Virginia Thorn
Emmy Award winner. Teaches Excel with AI at Coding Liquids.
Questions
Asked before starting.
One weekly sheet, filled in by the whole team and checked by me: is that a job for Excel macros and VBA?
It is the job they do best, and the checker that does it is what The Complete Excel Course with AI Integration from Coding Liquids has you build, in FormatWizard, a project that is industry standard and was designed after talking with people from many different industries. Its finished macro walks every row of the sheet (Lesson 147), writes the reason beside each faulty row, with several reasons joined in one message (Lesson 148), colours the cell that needs fixing (Lesson 149) and marks entries in a number column that are not numbers (Lesson 150). The lessons check a sales sheet for rows without a region or a salesperson; your weekly sheet's site and person columns take the same checks. Each person then filters for their own name and fixes what the message says, instead of you correcting rows on their behalf. The 17 lessons picked out here, 1 hour 16 minutes in all, start from a first recorded macro, so no coding background is assumed.
Every person's sheet arrives with its own widths, fonts and colours: can a recorded macro give them all the team's look?
Yes: record the house style once and it replays on each sheet in a keystroke, and The Complete Excel Course with AI Integration begins the section with exactly that skill. Lesson 137 undoes stray changes first so only useful steps go into the recording, names the macro, sets a shortcut and formats as it records; play it back and the same widths, fonts and fills land in the same places every time. The lesson also names the hidden personal workbook Excel loads at start-up, the home for a style macro that every file on your machine should be able to call on. Lesson 138 records relative to the active cell, so a style meant for one row lands on whichever row you pick. Ctrl+Z will not take a macro back, so keep a saved copy before the first playback. Rules that need a decision, such as colouring only the rows with a gap, belong to the VBA lessons that follow.
Can each person run the check on their own sheet before it reaches me?
Yes: put the checker inside the team's shared workbook, and anyone who opens it can run it. The Complete Excel Course with AI Integration saves the macros with the file as an Excel Macro-Enabled Workbook in Lesson 140, since an ordinary workbook strips the code out when it is saved. The shortcut you give a macro in Lesson 138, such as Ctrl+Shift+Q, goes with the file, and Developer, Macros lists it for anyone (Lesson 139). Lesson 142 covers what each colleague meets on opening the file: the bar that asks them to enable content, and the rule to enable it only for files they trust. Agree one routine with the team: fill in the week, press the shortcut, fix whatever the flag column names, then send. Problems get solved by the person who made them, while they are easiest to fix, and your own review shrinks to the rows that still carry a message.
My team worries a macro will change their entries: what does the checker actually touch?
The flag column and the colour of the cells it marks, nothing more: every value your team typed stays exactly as it was. In The Complete Excel Course with AI Integration, the checking macros write their messages into a column of their own (Lesson 148) and add a soft red fill to the cell at fault (Lesson 149), and nothing in them edits an entry. Lesson 146 resets that flag column's messages and fills before each run, so last week's notes never mix with this week's, and Lesson 152 makes a later check add its message after the earlier one instead of writing over it. Because Ctrl+Z cannot undo a macro, Lesson 151 teaches the safe habit of printing what the code reads to the Immediate window before it writes anything at all. Show your team the flag column on the first run, and the worry goes.
Can the same checker look after both the weekly sheet and the one-to-one action log?
Yes: each check is its own small routine, and one master macro can call as many as you need. The Complete Excel Course with AI Integration shows how a routine is pointed at its sheet in Lesson 143, by naming the worksheet in a single line of code, so a copy of the missing-value loop aimed at the action log's sheet checks that every action names who owns it and where it stands (Lesson 147 and Lesson 148). Lesson 152 then joins the routines into one macro that runs them in order, with screen updating switched off for speed and an error handler that reports what went wrong rather than crashing. The function from Lesson 145 that locates the final row in use is written once and called by every routine, so a short log and a long sheet are both read to their final row. One shortcut then checks everything before your one-to-ones begin.
I will only open the macro now and then: will I still understand it months later?
The lessons build that habit in from the first line, so you will. The Complete Excel Course with AI Integration starts each module with Option Explicit, which forces every variable to be declared and catches a misspelt name (Lesson 144), and adds comments that say in plain words what each block does (Lesson 147). Each job sits in a routine whose name describes it, the routines live in separate modules (Lesson 142), and the reusable function for the last row is written once (Lesson 145). Lesson 148 even has you write parts of a macro with ChatGPT or Claude, each in its own window, and then correct them, which is the skill that matters months later: reading code and judging it. Lifetime access keeps every lesson there for the day you return, and the instructor support plan puts written answers from the instructor behind any question on your own code.
People leave blank rows between their entries: will the macro stop at the first gap?
It reads straight past them, because the macro finds the true last row before it checks anything. The Complete Excel Course with AI Integration builds that in Lesson 145: a function searches the sheet from the bottom upwards for the last cell holding anything, so blank rows in the middle cannot cut the check short, and it returns zero on an empty sheet so nothing runs by mistake. The loop of Lesson 147 then walks from the first data row to that last one, a row at a time, and a blank row in the middle is checked like any other and comes back flagged, which shows you where it is. Trim inside the test means a cell holding only spaces counts as empty too. When a new person's rows arrive next week, the function finds the new end by itself, as the lesson shows by pasting one more row.
The macro reads columns by their letters: what happens if someone inserts a column in the team sheet?
The checks would then look one column off, so the layout needs guarding, and The Complete Excel Course with AI Integration gives you both the guard and the quick repair. The checking code of Lesson 147 to Lesson 150 names each column by its letter, one for each field and one for the flags, which keeps it short and readable. Sheet protection from TaskFlow (Lesson 86) stops columns being inserted or moved: cells stay locked by default, you unlock the ones people fill in, and the protected sheet keeps its shape. Leave the flag column unlocked too, so the macro can still write its messages. If the layout has to change on purpose, Lesson 149 shows the repair in miniature: the colouring line is copied to a second check with one letter changed, and the same one-letter edit points any check at a column's new place.
Once the check has run, can I see whose rows need the most attention?
Yes: the flags are plain text in a column of their own, so the filtering and sorting you already use can read them. The Complete Excel Course with AI Integration writes one message per faulty row in Lesson 148, naming every fault that row has, joined by a separator. A text filter on that column, taught in Lesson 21, lists every row that carries a message, and a sort by the person's name, from Lesson 20, groups them, so each person's corrections sit together for a quick word at the stand-up or across the desk at a one-to-one. The soft red fill of Lesson 149 makes the same rows visible at a glance without any filter at all. Run the check each week and the pattern shows itself: the same missing field from the same person is a training need, not a one-off slip, and you can plan it into their development.
Can I add my own rule to the checker later, such as every action needing an owner?
Yes: every check in FormatWizard follows one pattern, and The Complete Excel Course with AI Integration has you repeat it until it is second nature. Inside the loop of Lesson 147, an If tests one cell of the row and writes a message when the test fails; Lesson 148 adds a second If for a second column, and Lesson 149 copies the colouring line into it with one column letter changed. A rule of your own, an owner on every action or a status on every task, is one more If of the same shape aimed at its column. A comparison works the same way: Lesson 146 tests whether a number falls below a limit, the shape of a rule such as no day logged above a set number of hours. Save the new rule as its own routine, add one line calling it to the master macro of Lesson 152, and the check grows with your team.
Red flags on a shared sheet can feel like blame: can the checker's messages be worded kindly?
Yes: every word and colour the checker uses is yours to choose, and The Complete Excel Course with AI Integration shows where each one is set. The message is a piece of text you write into the code in Lesson 148, so Site missing can just as well read Please add your site, and several messages for one row are joined into a single line. The colour comes from an RGB mix in Lesson 149, where the lesson picks a soft warning red; a pale amber or blue is a change of three numbers. Lesson 150 words its number check as invalid rather than missing, a reminder that a message should say what is wrong as well as where. A checker that reads like a helpful colleague gets used every week, the team fixes its rows before you see them, and nobody dreads the flag column.
I usually have several team files open at once: will the macro check the right one?
Yes: written VBA names its own target, and The Complete Excel Course with AI Integration teaches that from the first line of code. In Lesson 143, a single line points the macro at ThisWorkbook, the file that holds the code, and at the worksheet by its name, so with five workbooks open it still checks the one it belongs to and nothing else. Every check that follows, from the last-row function of Lesson 145 to the full validation run of Lesson 152, works through that named sheet. Recorded macros behave differently, and the lessons show why: a relative recording acts on whichever cell is selected (Lesson 142), which suits a quick format but not a check. Keep the checking code in the team's own workbook, and the right file is checked whatever else is open on your screen.
Excel with AI
See the whole course.
The Complete Excel Course with AI Integration: 16 hours of video in 186 lessons, built around 14 industry-standard projects, with lifetime access, a Certificate of Completion and a 14-day money-back guarantee.
The same course
For another job, skill, goal, level, topic or comparison.
The course for this job
The course for this skill
More skills for this job
- Excel formulas for team leaders
- Lookups for team leaders
- PivotTables for team leaders
- Excel charts for team leaders
- Excel dashboards for team leaders
- Conditional formatting for team leaders
- Data cleaning for team leaders
- Data validation for team leaders
- Excel tables for team leaders
- Text functions for team leaders
- Date functions for team leaders
- Dynamic arrays for team leaders
- Power Query for team leaders
- Power Pivot and DAX for team leaders
- Power Automate for team leaders
- Copilot in Excel for team leaders
- ChatGPT for Excel for team leaders
- Claude in Excel for team leaders