The Complete Excel Course with AI Integration

Excel macros and VBA for auditors

Every period the same checks come round: a client listing tested for blank fields, amounts that are not numbers and items to mark for follow-up, row by row, by hand. The Complete Excel Course with AI Integration turns that routine into one macro on FormatWizard, an industry-standard project. This page follows the whole build in audit order: recorded macros for marking exceptions, the VBA editor and macro security, a loop that reaches the last row, each check in turn, and a debugged run behind an error handler.

Taught by Sagnik Bhattacharya and Virginia Thorn

The Complete Excel Course with AI Integration: Sagnik Bhattacharya and Virginia Thorn

What you will be able to do

At work, you will be able to:

  • Mark exception rows the same way every time with a recorded macro: a keyboard shortcut, relative references for whichever row you are on, and a button on the Quick Access Toolbar.
  • Keep macros in a macro-enabled .xlsm workbook and understand the macro security and trust settings that decide whether a workbook's code may run, client files included.
  • Find the last used row of any listing with a VBA function built on Find, so every test runs to the end of the population whatever its length.
  • Loop through every row with For Next and If tests that flag blank required fields, gathering each row's problems into one message in a flag column.
  • Catch entries that cannot be read as numbers with IsNumeric and colour each faulty cell with Interior.Color and RGB, so exceptions stand out on screen and in the flag column alike.
  • Clear the previous run's flags and fills before each new run, so a rerun on next period's listing starts from a clean sheet.
  • Check what code reads with Debug.Print and the Immediate window before it writes anything, then gather every check into one routine behind an error handler.
  • Read a macro's code in the VBA editor line by line, so a client's macro or an assistant's draft can be judged before it touches real figures.

Projects

What you will build.

The course has 14 industry-standard projects. These four matter most here.

  • Project 11

    FormatWizard

    One click that checks a whole sheet for you.

    An audit test in macro form: every row read down to the last one, blank required fields and non-numeric figures flagged in a column of their own, each faulty cell coloured, old results cleared before each run, and starter and finished files to compare.

  • Project 12

    SalesFusion

    A sales report that refreshes itself from a folder of files.

    The clean-up a macro should not have to do: Power Query fixes the text and data types of a messy export once and replays those steps on every new file, so the VBA checks run on figures that are already true numbers.

  • Project 13

    AutoFlow

    The weekly report routine, run by a flow instead of by you.

    The other road to automation, on Windows: a desktop flow that opens the workbook, loops down its rows, reads a status and writes a flag beside it, its logic laid out step by step on screen with no code to read.

  • Project 14

    Agentic AI in Excel

    AI finds and fixes the formula; you check it before it counts.

    Where the habit of questioning an assistant's answer is formed, with a prompt pattern and a QA checklist, before you apply it to VBA that Claude or ChatGPT drafts for you.

Tap or pinch to zoom in, drag to move around. Click or scroll to zoom in, drag to move around.

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

Lesson 136 is the place to begin for anyone comfortable typing data and an IF formula: the section assumes no programming and builds one macro from the first recording to the full validation run. Excel still new? Begin at Lesson 1: you will meet cell references in Lesson 10 and the IF function in Lesson 29 on the way, and both come back in the macro lessons. Already recording macros for your working papers? Go to Lesson 141, where the VBA editor opens and the code begins.

17 of 186 lessons · 1 h 16 min

14 VBA and macros in Excel: FormatWizard 5 of 17 lessons · 19 min Macros before any code: what a macro and VBA are, a first recording that marks a negative-amount row, relative references that make it work on any row, the Developer tab with a button and the Quick Access Toolbar, and the .xlsm format that keeps the code with the file. Useful in its own right for marking exceptions the same way every time.
  1. 136 Start here Excel macros and VBA for beginners What macros are, the FormatWizard project 3 min
  2. 137 Record your first Excel macro Name, run and use absolute references 6 min
  3. 138 Relative references in Excel macros Make recorded macros dynamic 4 min
  4. 139 Developer Tab in Excel Run macros from a button and the quick access toolbar 4 min
  5. 140 Save macros in Excel Macro-enabled workbooks and the XLSM file format 3 min
14 VBA and macros in Excel: FormatWizard 5 of 17 lessons · 23 min Reading and starting to write code: the VBA editor and its workspace, macro security and trust settings for workbooks that carry code, a first line that points at the data sheet, variables declared under Option Explicit, Sub against Function, and GetLastUsedRow, which tells every later check where the population ends.
  1. 141 The VBA Editor in Excel Open it with Alt+F11 and learn the workspace 4 min
  2. 142 Working in the VBA editor Macro security, trust settings, switching to Excel 6 min
  3. 143 Your first VBA code Modules, worksheets, rows, columns and formatting 4 min
  4. 144 VBA variables and data types Sub vs function for Excel beginners 6 min
  5. 145 VBA functions in Excel Build GetLastUsedRow with find and exit function 5 min
14 VBA and macros in Excel: FormatWizard 5 of 17 lessons · 27 min The tests themselves, one to a lesson: clearing the last run's flags and fills, a For Next loop that flags blank regions, If and Else checks that gather a row's faults into one message, Interior.Color and RGB for the cells at fault, and IsNumeric for entries that cannot be treated as numbers.
  1. 146 Clear old flags with VBA Reset messages and fill colours with if statements 5 min
  2. 147 For Next loop in VBA Flag missing region values in Excel 4 min
  3. 148 VBA If Else and loops Check missing sales data and build a FlagText message 5 min
  4. 149 Highlight cells with VBA Interior.Color and RGB for missing data 5 min
  5. 150 IsNumeric in VBA Validate unit price and amount data types in Excel 7 min
14 VBA and macros in Excel: FormatWizard 2 of 17 lessons · 8 min Proof and the finished run: Debug.Print and the Immediate window to watch what the code reads before it writes, then one routine that clears, checks and flags the whole sheet in order, with screen updating paused for speed and an error handler that reports a fault instead of crashing.
  1. 151 Debugging VBA for beginners Debug.Print and the Immediate window 5 min
  2. 152 Complete Excel validation macro One VBA subroutine with an error handler 3 min

Instructors

Who teaches it.

Virginia Thorn smiling at the camera, dark hair tied back, wearing a navy top.

Instructor, Excel with AI

Virginia Thorn

Emmy Award winner. Teaches Excel with AI at Coding Liquids.

Questions

Asked before starting.

Which course teaches auditors to build Excel macros and VBA checks?

The Complete Excel Course with AI Integration from Coding Liquids builds them into FormatWizard, an industry-standard project designed after talking with people from many different industries, whose finished macro behaves like a completeness and validity test. It reads a listing down to the last used row, flags blank required fields and entries that are not numbers, colours every cell at fault and writes each problem into a flag column, all in one run behind an error handler, so one macro audits the whole dataset at once (Lesson 152). You reach it from a first recorded macro, through the VBA editor, variables, a function of your own, If statements and a For Next loop, with no programming assumed. This page holds 17 lessons, 1 hour 16 minutes of video. The lessons use sales records; a payments listing, an expense claims file or a fixed asset register is checked the same way.

Which parts of an audit test can a macro run for me?

Six, and The Complete Excel Course with AI Integration teaches each one in FormatWizard. Marking exceptions: a recorded macro formats a problem row in one keystroke, and with relative references it works on whichever row you select (Lesson 137 and Lesson 138). Completeness: a For Next loop flags every row whose required field is blank, with Trim so a cell of spaces still counts as empty (Lesson 147). Validity: IsNumeric flags a figure that cannot be treated as a number (Lesson 150). Reporting: each row's problems are joined into one message in a flag column (Lesson 148). Visibility: Interior.Color and RGB colour the cell at fault (Lesson 149). A clean rerun: the previous run's flags and fills are cleared first (Lesson 146). Sampling routines and a loop that compares formulas across sheets are not lessons of their own; the loop, the test and the flag that such routines are built from are.

Can VBA test every row of a client listing, however long it is?

Yes, and that is what lets you say the whole population was tested. The Complete Excel Course with AI Integration builds GetLastUsedRow in Lesson 145, a function that first uses COUNTA to make sure the sheet is not empty, then searches upwards from the bottom with Find to return the last row holding anything. On the FormatWizard sheet it reports row 5071, and after one more row is pasted in, 5072, with no change to the code. Every check that follows loops from row 2 to that number, so a listing that grows next period is covered in full, and a sheet holding only headers stops the routine with a message instead of running on nothing (Lesson 146). The message box of Lesson 144 shows the last row as the code sees it: a figure to agree to the client's record count before you rely on the result.

How does the finished macro report the exceptions it finds?

In two layers at once: words in a flag column and colour on the cell at fault. In The Complete Excel Course with AI Integration each row's message is built in a text variable that is emptied for every new row, so one row's faults never carry into the next, and a pipe separates them, so a row missing both a region and a salesperson carries both notes (Lesson 148). Interior.Color with RGB fills each faulty cell a soft warning red (Lesson 149), and an entry that is not a number is flagged as invalid rather than missing (Lesson 150). When Lesson 152 joins the checks, the last one is changed to add to the flag after a pipe instead of overwriting it, because two routines writing to one cell would otherwise erase an exception. Filter the flag column afterwards and you hold an exceptions list ready to follow up, and a PivotTable will count it.

Will a macro catch words and placeholders sitting in an amount column?

Yes: IsNumeric is built for exactly that, and The Complete Excel Course with AI Integration gives it a lesson of its own (Lesson 150). Row by row, IsNumeric puts one question to the per-unit column, can this value be read as a number, and a word or a placeholder such as N/A or TBC fails it, so the cell and its flag are coloured light red and the row is marked invalid, a different note from the one a blank field earns. That matters on an audit file because SUM passes over text without a word, so a listing holding entries like those falls short of the client's control total for no visible reason. The same lesson shows Option Explicit catching an undeclared variable, the kind of slip that would otherwise make a check quietly misbehave. Digits that a system exports as text are a job for Power Query, which sets each column's data type once and replays the fix on every new file (Lesson 158).

Can I prove an audit macro catches what it should before I rely on it?

Yes, by planting an exception you know about and watching the macro find it, which is how The Complete Excel Course with AI Integration tests every check. In Lesson 147 a region is deleted from row 18 before the loop runs; the macro flags row 18 and also row 190, a genuine blank nobody planted. In Lesson 148 row 4 loses both its region and its salesperson and comes back with both notes, beside rows flagged for one fault each. Debug.Print and the Immediate window then let you watch which cells the code reads, in which order, before it writes a single flag (Lesson 151), which stops a mistake spreading across hundreds of rows. Run that routine on a copy of the client's file, since the undo button cannot reverse a macro (Lesson 137), and keep the planted test with your working papers as evidence the check works.

Can I read a client's macro and tell what it does to the numbers?

Yes, and The Complete Excel Course with AI Integration trains the reading before the writing. Lesson 141 opens a recorded macro in the VBA editor and tours the Project Explorer, the modules and the code window, so you know where a workbook keeps its code. Later lessons paste in finished routines and read them line by line: the last-row function, the routine that clears old flags and the full validation run (Lesson 145, Lesson 146 and Lesson 152). Along the way Lesson 142 makes the point an auditor most needs: the recorded macro named for negative amounts formats its row without ever checking that the amount is negative. A macro does what its code says, whatever its name promises. The same lesson covers macro security, with the rule to enable content only for files you trust, the right reflex for any client workbook that arrives with code inside.

Will ChatGPT or Claude write my audit macros, and can I trust the code?

They will draft it quickly, and The Complete Excel Course with AI Integration makes you the person who can tell whether to trust it. In Lesson 148 you write parts of the FormatWizard macro with Claude or ChatGPT and correct what comes back, after the AI section has shown what each assistant can and cannot do (Lesson 88), how a strong prompt names exactly what it wants (Lesson 91) and why every AI answer meets a checklist before it counts (Lesson 99). The VBA lessons supply the questions to ask of any draft: does the loop reach the last used row, is a blank cell trimmed before it is tested, is a figure checked with IsNumeric, does a second check append to the flag or overwrite it, and what happens when something fails. A macro whose answers you cannot give is not yet a test you can sign off.

Is VBA still worth learning, or are Office Scripts and Power Automate taking over?

Worth learning, and The Complete Excel Course with AI Integration adds the newer route beside it. Desktop Excel still runs its macros in VBA, the language behind every recorded macro, and client workbooks arrive with it inside. The course teaches it in full in FormatWizard and then Power Automate Desktop in AutoFlow, on Windows (Lesson 174), so you can choose per job. Its own comparison is useful for audit work: on a sheet of over a thousand rows, a VBA macro would usually run faster, while a flow lays its logic out visually, readable, auditable and code-free (Lesson 185). Office Scripts, the tool of Excel on the web, are not taught, and Excel on the web runs no VBA. For the desktop files where most audit work happens, the two tools taught here cover the ground between them.

Can I keep a formatting macro to hand in every client file I open?

Yes, and The Complete Excel Course with AI Integration shows the pieces. Lesson 137 records a macro that marks a problem row bold, italic and highlighted, gives it a keyboard shortcut and introduces the Personal Macro Workbook, the hidden file that keeps a macro available whenever Excel opens on that computer, rather than only in the workbook where it was recorded. Lesson 138 records it again with relative references, so it formats whichever row you start from instead of always the same one. Lesson 139 adds the Developer tab and a button on the Quick Access Toolbar, so the macro is one click from any sheet. For an auditor that means one consistent way of marking exceptions across every client file in an engagement. Save your own tools as macro-enabled .xlsm workbooks, since a standard .xlsx strips every macro out on saving (Lesson 140).

Do the macro lessons work on a Mac, and on a laptop my firm manages?

On a Mac, yes, and on a firm's Windows laptop wherever macros are allowed. VBA is part of desktop Excel on both systems, and the requirements of The Complete Excel Course with AI Integration name Windows only for the Power Pivot and Power Automate sections, so FormatWizard is open to Mac users. The lessons are recorded on Windows: Lesson 139 notes that the Mac screens look slightly different, and the editor's shortcut, Alt+F11, is the Windows one (Lesson 141). Excel on the web runs no VBA, so these lessons need the desktop app. Whether a workbook may run code at all is decided by the macro security and trust settings that Lesson 142 explains, so where a firm manages those settings centrally, you will know exactly what to ask for and why.

I have never written code: can I follow the VBA lessons during busy season?

Yes: The Complete Excel Course with AI Integration assumes no programming, and its lessons are short enough to fit between client deadlines. The first run needs no code at all: you record a macro, run it, give it a button and save the file (Lesson 136 to Lesson 140). Code then arrives one idea at a time, each added to the same macro: the If statement behaves like the IF function you already write, and the loop simply repeats for each row the check you would make by eye on one. Variables and data types are explained for beginners (Lesson 144), and so is debugging (Lesson 151). Every lesson is a few minutes of video, so even a heavy week can take one or two. On the instructor support plan, a question asked under any lesson is answered by the instructor in writing.

Can I turn FormatWizard into a test for my own engagement files?

Yes: the finished workbook is built to be adapted, and The Complete Excel Course with AI Integration gives you both versions to work from. FormatWizard comes as a starter file of sales records and a complete macro-enabled workbook holding every routine. The checks name their columns by letter, region in B, salesperson in C, the per-unit figure in F and the flag in H, so pointing them at an approver, a vendor ID or an amount in your own listing means changing those letters and the message text. The last-row function needs no change at all, because it measures each listing afresh (Lesson 145), and a new check can copy the IsNumeric pattern and append its note after a pipe (Lesson 152). Keep the client's original file untouched and run the macro on a copy. The finished file then becomes a tool you carry from one engagement to the next.

How long before a macro is testing my own listings?

About 1 hour 16 minutes of video in all, and the first working macro arrives early. By Lesson 140 of The Complete Excel Course with AI Integration you have a recorded macro that marks an exception on whichever row you select, a button that runs it and a workbook that keeps it. The checks follow one short lesson at a time, until Lesson 152 joins them into a single run with an error handler that reports what went wrong instead of crashing. Allow more time than the video for typing the code yourself and pointing it at a listing of your own: that practice is what makes the skill yours. Lifetime access keeps every lesson open for the next new check an engagement needs, and completing the course earns a Certificate of Completion you can share on LinkedIn, backed by a macro you can open and explain line by line.

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.