The Complete Excel Course with AI Integration
Excel macros and VBA for management consultants
Every case repeats the same chores: a client's extract checked for gaps before anything is built on it, exhibits formatted to the house style, a revised file checked all over again. The Complete Excel Course with AI Integration teaches management consultants to hand those chores to macros and VBA on FormatWizard, an industry-standard project. This page takes the whole automation section: recording, the editor, variables, loops, flags, debugging and one master check.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Record the formatting a partner expects on exhibits and problem rows, with absolute or relative references, and run it from a Developer tab button or the Quick Access Toolbar.
- Save a tool as a macro-enabled XLSM workbook, handle the macro security bar, and enable content only in files you trust, your own or a client's.
- Open the VBA editor, read a recorded or inherited macro module by module, and give each routine a module of its own.
- Write VBA with Option Explicit, declared variables and a reusable function that finds the last used row of a client extract of any length.
- Loop through every row with For Next and If Else to flag missing fields, write the reason beside each row and colour the faulty cell with RGB.
- Flag entries in a number column that are not numbers with IsNumeric, so notes and stray words are caught before an analysis is built on them.
- Watch what code reads with Debug.Print in the Immediate window, then join every check into one macro with an error handler and screen updating off.
- Let ChatGPT or Claude draft part of a macro in its own window, then read, correct and test it before it touches client data.
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 of over five thousand rows, the course's macro project grows from a recorded formatting macro into RunFullValidation, which resets old flags, marks missing regions and salespeople, flags entries that are not numbers and colours every fault. Aimed at a client extract or a returned data template, it becomes the first-pass check a case runs before any analysis.
-
Project 14
Agentic AI in Excel
AI finds and fixes the formula; you check it before it counts.
The course's AI project, Copilot, ChatGPT and Claude on real tasks; for macros it adds the drafting habit of Lesson 148, where an assistant writes part of the code in its own window and you correct it, and a checklist for any AI output before it reaches a client.
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: the section assumes no code at all, only the Excel you already use. New to Excel? Begin at Lesson 1 and come here once tables and formulas are familiar. Already recording macros? Move to Lesson 141 for the editor, or to Lesson 146, where the checking routines begin; the FormatWizard starter and complete workbooks let you join at any lesson.
17 of 186 lessons · 1 h 16 min
14 VBA and macros in Excel: FormatWizard Recording before coding: what a macro and VBA are, the FormatWizard sales sheet, a first macro recorded with absolute references and a second with relative ones, both run from the Developer tab and a Quick Access Toolbar button, and the XLSM format that keeps the code. The quickest win on a case: house formatting replayed in one keystroke.
- 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 Inside the VBA editor: Alt+F11, the Project Explorer, modules and the code a recording wrote, then macro security, the Enable Content bar and a compile error put right. A consultant opening a client's macro-laden workbook needs exactly this map.
- 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
14 VBA and macros in Excel: FormatWizard Writing code: a worksheet variable set through ThisWorkbook, Option Explicit, comments, a Sub against a Function, and GetLastUsedRow, which finds the last row of a sheet whatever its length, the guard every client extract needs.
- 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 and fills cleared before each run, a For Next loop that flags missing regions, an If Else loop that builds a message for each row, cells highlighted with RGB, and IsNumeric flagging entries in a number column that are not numbers. The lessons use a sales sheet; a client's returned template 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 Proof and assembly: Debug.Print and the Immediate window to watch what code reads before it writes, then RunFullValidation, one macro that calls every check in order with an error handler and screen updating switched off.
- 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.
How much do management consultants use Excel macros and VBA, and which course teaches the parts that matter on a case?
Enough to matter on every case, for the chores that repeat: formatting exhibits and checking a client's data before anything is built on it. The Complete Excel Course with AI Integration from Coding Liquids teaches exactly those on FormatWizard, an industry-standard project created after talks with people across many industries. You record a formatting macro and run it from a button (Lesson 137 to Lesson 139), then write VBA that flags missing fields, colours faulty cells and catches entries that are not numbers (Lesson 147 to Lesson 150), and finish with RunFullValidation, one macro that runs every check with an error handler (Lesson 152). Formulas, PivotTables and Power Query still carry the analysis; macros take the repetition off your evenings. The path here is the whole automation section, 17 lessons and 1 hour 16 minutes, with the starter workbook and the finished XLSM to compare against.
Which chores on a case are worth turning into a macro?
Three kinds, and The Complete Excel Course with AI Integration teaches a macro for each. Formatting that recurs, such as negative figures picked out bold and coloured on every exhibit, becomes a recording run from one key or a toolbar button (Lesson 137 to Lesson 139). Checks that recur, such as every returned client file scanned for missing regions, missing names and entries that are not numbers, become VBA loops that write a reason beside each faulty row (Lesson 147 to Lesson 150). Resets that recur, clearing yesterday's flags before today's run, become one routine of their own (Lesson 146). Work that changes shape every time stays with formulas and PivotTables, and the recurring clean-up and combining of exports belongs to Power Query, which the course teaches on SalesFusion from Lesson 153. A macro earns its place where the same clicks repeat across files and versions.
Can I record the formatting a partner insists on and replay it on any client file?
Yes, and recording is where The Complete Excel Course with AI Integration starts. In Lesson 137 you record NegativeAmount, which makes a row with a negative amount bold, italic and highlighted, give it a shortcut and run it again; the lesson also points out the Personal Macro Workbook, which keeps a macro available whenever Excel opens on that computer, the natural home for formatting you carry from client to client. Lesson 138 records the same steps with Use Relative References, so the macro formats whichever row you start from instead of one fixed row. Lesson 139 adds the Developer tab and puts the macro on the Quick Access Toolbar with an icon of its own. One warning from the lessons matters on any deliverable: Ctrl+Z cannot undo a macro, so try a new recording on a copy before a client file meets it.
Each version of a client extract has a different number of rows: will my code still find the end?
Yes: The Complete Excel Course with AI Integration builds a function for exactly that before any check is written. In Lesson 144 you set up a Sub with Option Explicit and declared variables that asks for the last used row, and Lesson 145 writes GetLastUsedRow, which searches the sheet upwards from the bottom with Find and returns the row of the last entry, with a COUNTA guard that stops cleanly on an empty sheet. On the FormatWizard data it reports row 5071, then 5072 once a row is pasted below. Every later loop runs from the first data row to that number, so a check written today covers a client file of four hundred rows or forty thousand without an edit. Because it is a separate function, made Public in Lesson 146, every macro in the workbook can call it.
Can a macro write the reason beside every faulty row of a client file, not just colour it?
Yes, both at once, which is what makes a check usable by a whole case team. In The Complete Excel Course with AI Integration, Lesson 147 loops through every row with For Next and writes Region missing in the Flag column wherever the region is empty, using Trim so a cell of spaces still counts as empty. Lesson 148 builds a FlagText message for each row, emptied before each pass, so one row can carry Region missing and Salesperson missing together, separated by a pipe. Lesson 149 then colours the empty cell itself a soft red with Interior.Color and RGB: a reason in the flag column and a colour on the faulty cell, two layers from one run. Filter the flag column and you hold the list of rows to send back to the client team, each with its fault spelt out in words.
Some numeric fields in a client's file hold notes like N/A or a stray word: can VBA catch those?
Yes: Lesson 150 writes that check, one of the most useful habits The Complete Excel Course with AI Integration gives a consultant. A loop runs down the per-unit figure column with IsNumeric, and wherever an entry is not a number, a word, a note such as N/A or a stray character, it colours the cell and its flag light red and records the entry as invalid. Option Explicit catches a missing declaration along the way, a reminder of why it sits at the top of every module. The flag says invalid rather than missing, so a blank and a bad entry stay apart in the list you send back. Numbers stored as text are a separate fault, handled in the course by the COUNT against COUNTA check (Lesson 35) and by Power Query's data types (Lesson 158), so between them the type problems of a client file are covered.
When the client sends a corrected file, will old flags from the last run get in the way?
They are wiped before every run, because The Complete Excel Course with AI Integration writes that reset as a routine of its own. Lesson 146 clears the Flag column's text and fill colours from the first data row to the last used row, and stops with a message on a sheet that holds only headers. Lesson 152 then builds RunFullValidation, which calls the reset first and the checks after it, in order, so every run starts from a clean column. The same lesson fixes a subtle fault: two routines writing to one cell must append after a pipe, or the second wipes out the first, and the type check is changed to append. For a consultant, that means the revised extract the client sends at midnight gets exactly the same check as the first, with no stale flag left to mislead the morning's analysis.
Some clients will not accept macro-enabled files: what happens to my work at hand-over?
Your results travel and your code stays with you, and The Complete Excel Course with AI Integration explains the file formats that make that possible. Lesson 140 shows that a plain .xlsx strips out every macro when saved, while the macro-enabled .xlsm keeps the VBA beside the data, so the first save of a file with code goes through Save As. Keep the checking tool in your own .xlsm, and the flags, colours and formatting it writes stay in any copy saved as .xlsx for the client. Lesson 142 covers the other side of the hand-over: the yellow bar that disables macros, Enable Content, and the rule to enable only files you trust, the same rule a client's IT team applies to yours. Where a client does allow macros, the .xlsm and its button go over as they are.
A client's workbook arrives with macros no one on the team wrote: can I read what they do before enabling them?
Yes, and The Complete Excel Course with AI Integration gives you the map to do it. Lesson 141 opens the VBA editor with Alt+F11 and tours it: the Project Explorer with its modules, the Microsoft Excel Objects for each sheet and the workbook, the code window and the drop-down that moves between macros. Lesson 142 explains the macro security bar and when Enable Content is safe, and from Lesson 143 onwards you write enough VBA yourself, worksheet variables, loops, If statements and cell colours, to recognise what an inherited routine reads and writes. Lesson 151 adds Debug.Print and the Immediate window, which show what code is reading without writing anything to the sheet. A recorded macro, an old validation routine or a formatting button in a client file stops being a mystery the team works around.
Partners and teammates have to follow my code: does the course teach VBA someone else can read and fix?
Yes: the habits that make code readable run through every lesson of the VBA section in The Complete Excel Course with AI Integration. Option Explicit forces every variable to be declared and stops typing slips becoming bugs (Lesson 144); comments begin with a single quote and say what each block does; each routine lives in a module of its own (Lesson 142); and GetLastUsedRow is written once as a function that any macro can call (Lesson 145), made Public so other modules can reach it (Lesson 146). Lesson 152 ends with the shape a reviewer hopes to find: one short master macro that calls clearly named routines in order, switches screen updating off for speed and back on, and an error handler that reports what went wrong instead of leaving Excel halted mid-run. A colleague opening your workbook mid-case can read the whole check from its first lines.
The macro recorder writes clumsy code: will the course take me beyond recording?
Yes: recording is only the opening of the automation in The Complete Excel Course with AI Integration, and the lessons show where it stops. Lesson 142 points out what the recorded code cannot do: it formats a row without checking whether the amount is negative at all. From Lesson 143, you write what a recorder never would: a variable that points straight at the worksheet through ThisWorkbook, with no selecting or clicking involved; a function that finds the last row; loops that visit every row; If tests that decide what to flag; colours set by RGB; a type check with IsNumeric. By Lesson 152 the code decides for itself which rows need attention, something no recording can do. The recorder stays useful as a quick way to see the VBA a task needs, and then the written version takes over.
Could ChatGPT or Claude write a macro for a client file, and what would I still need to check?
They can draft parts of one, and The Complete Excel Course with AI Integration has you practise exactly that, then correct the draft. In Lesson 148, after building the two-check loop yourself, you write parts of it with Claude or ChatGPT, each in its own window, and fix what comes back. That order is the point: an assistant's VBA can only be judged once you can read loops, If tests and cell references yourself. Before any drafted macro touches client data, three checks from the section apply: Debug.Print in the Immediate window to confirm it reads the right cells in the right order (Lesson 151), a trial run on a copy, since Ctrl+Z cannot undo a macro, and an error handler so a failure reports itself (Lesson 152). The code can be drafted from a description of the columns alone, so no client figure needs to leave the workbook.
Consolidating regional files and cycling through scenarios are classic macro jobs: does the course cover them?
It covers both jobs, each with a tool built for it. Consolidation is taught with Power Query: Lesson 166 combines every file in a folder into one table and picks up a new file on refresh, so a client's regional or monthly returns stack themselves without a loop through workbooks. Scenarios are taught with formulas in WealthFlow, where the inputs sit in one block and tougher cases are tested against them (Lesson 131 and Lesson 134). The VBA section of The Complete Excel Course with AI Integration does not write macros that open workbooks one by one or cycle assumption sets; it builds the loops, variables and functions such macros are made of, so the step to them is short when a case calls for one. On most cases, the query and the formula model are quicker to build and easier for a client team to keep running.
On a live case, how soon could the first recorded macro start paying back, and will a Mac do?
From the first recording: Lesson 137 ends with a macro that formats a row in one keystroke, and the whole path on this page runs 1 hour 16 minutes. In The Complete Excel Course with AI Integration, the recorded macros, the toolbar button and the XLSM save come first, so by Lesson 140 a formatting routine is ready for a live deck; the checking routines follow, and RunFullValidation closes the section. A Mac will do: the course's requirements name Windows only for Power Pivot and Power Automate, and the VBA lessons are shown on Windows, with Mac screens that differ slightly, as the lessons themselves mention. Alt+F11 and the other shortcuts are the Windows ones. The starter and complete FormatWizard workbooks come with the course, lifetime access keeps every lesson ready for the next chore worth automating, and the Certificate of Completion follows the whole course.
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
- Formulas for management consultants
- Lookups for management consultants
- PivotTables for management consultants
- Charts for management consultants
- Dashboards for management consultants
- Conditional formatting for consultants
- Data cleaning for consultants
- Data validation for consultants
- Excel tables for consultants
- Text functions for consultants
- Date functions for consultants
- Dynamic arrays for consultants
- Power Query for management consultants
- Power Pivot and DAX for consultants
- Power Automate for consultants
- Copilot for management consultants
- ChatGPT for management consultants
- Claude in Excel for consultants