The Complete Excel Course with AI Integration

Excel macros and VBA for financial controllers

Every close, someone scans the journal listing for blank codes and stray text, then formats the pack's pages by hand. The Complete Excel Course with AI Integration hands both jobs to macros and VBA on FormatWizard, an industry-standard project, and this page picks out what a controller needs: formatting recorded onto a button, trust settings for a shared file, a function that finds the last row, loops that flag faults, IsNumeric checks and one master routine.

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:

  • Record the pack's repeated formatting as a macro, make it follow any selected row with relative references and put it on a button for the whole team.
  • Save macro-enabled .xlsm workbooks and understand the trust settings, so a colleague can open your file and run its macro at the close.
  • Write VBA in the editor under Option Explicit, with declared variables, a Sub that does the work and a Function that finds where this month's export ends.
  • Loop through every journal line with For Next and If tests that flag a missing account code or cost centre, gather each line's faults into one message and colour the cell at fault.
  • Catch entries in an amount column that are not numbers with IsNumeric, before they reach a total.
  • Clear the previous run's flags and fills first, so the flag column shows only the current period's faults.
  • Trace a misbehaving loop with Debug.Print and the Immediate window, then run every check from one master routine behind an error handler.
  • Read and correct VBA drafted by ChatGPT or Claude before it touches a ledger file.

Projects

What you will build.

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

  • Project 11

    FormatWizard

    One click that checks a whole sheet for you.

    The course's macro and VBA project, built on a sheet of thousands of sales rows: for a controller it is the skeleton of a pre-close check, writing a flag beside every faulty line, colouring the cell at fault and clearing the last run's marks before it starts.

  • Project 12

    SalesFusion

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

    The course's Power Query project, built on messy sales exports: it shows a controller which clean-up belongs in a refreshable query rather than a macro, so VBA is kept for the checks and actions a query cannot make.

  • Project 13

    AutoFlow

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

    The course's Power Automate Desktop project, which drives Excel from outside on Windows: the other half of automation for a controller, opening the workbook, looping through rows and writing answers back without a line of VBA.

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

Begin at Lesson 136 if formulas are routine for you but you have never programmed: the first lessons record macros without code, and the VBA that follows adds one idea at a time to the same file. If Excel itself is new, start at Lesson 1 and come back once formulas feel familiar. Recording macros already? Join at Lesson 141, where the editor opens, or at Lesson 146 if you read VBA and want the checks straight away.

17 of 186 lessons · 1 h 16 min

14 VBA and macros in Excel: FormatWizard 5 of 17 lessons · 19 min No code yet: what a macro is and the FormatWizard tool it becomes, a first recording that formats a row with a negative amount, relative references that make it follow the selected row, a button on the Developer tab and the Quick Access Toolbar, and the .xlsm format that keeps the code with the file.
  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 The editor and the first lines: Alt+F11, modules and the workspace, macro security and when to enable content, code that points at a worksheet by name, variables and data types under Option Explicit, Sub against Function, and GetLastUsedRow, which finds where a sheet of any length 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 checks a controller wants run before trusting a listing: old flags and fills cleared, a For Next loop that flags blanks, If and Else tests gathered into one message per row, the faulty cell coloured with RGB, and IsNumeric on the per-unit figure and amount columns.
  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 assembly: Debug.Print in the Immediate window to watch what the code reads before it writes, then RunFullValidation, which calls every check in order with screen updating off and an error handler that reports the fault in plain words.
  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.

Should a financial controller learn Excel macros and VBA, or leave them to the team's analyst?

Learn them, at least far enough to read and approve what runs on the pack, and The Complete Excel Course with AI Integration from Coding Liquids takes you there and further. Its FormatWizard project, industry standard and, like every project in the course, designed after talking with people from many different industries, starts from a first recorded macro (Lesson 137) and ends with one VBA routine that checks a whole sheet behind an error handler (Lesson 152). A controller who signs off figures a macro produced carries the risk of that code: knowing what a loop, an If test and a data-type check do is how you judge whether it stopped at the last row or skipped a blank. The 17 lessons on this page, 1 hour 16 minutes of video, assume no programming. The lessons work on a sheet of sales records; a journal listing or a ledger export is checked the same way.

Can a recorded macro apply the pack's house formatting without any code?

Yes: record it once and it replays in one click, and The Complete Excel Course with AI Integration teaches recording before a line of VBA is typed. Lesson 137 records a macro that makes a row with a negative amount bold, italic and highlighted, names it without spaces, gives it a keyboard shortcut and stores it in the workbook, with the Personal Macro Workbook there for a macro wanted in every file. Lesson 138 switches on relative references, so the same keystroke formats whichever row you start from rather than one fixed row. Lesson 139 switches on the Developer tab and adds a button to the Quick Access Toolbar, and Lesson 140 saves the workbook as .xlsm, because a plain .xlsx strips every macro out. The recorder takes down whatever formatting you apply, so the styles of a pack page become one click for the whole team.

Can a macro check every journal line for a missing account code or cost centre before the pack is built?

Yes: a loop that reads every line and writes down what is wrong is the core of FormatWizard, the project The Complete Excel Course with AI Integration builds in VBA. Lesson 147 walks the rows from top to bottom and marks each one whose region is empty, treating a cell of spaces as empty too. Lesson 148 tests a second column in the same pass and joins a line's problems into one message, and Lesson 149 shades the offending cell so a reviewer's eye goes straight to it. Swap the columns and the same routine audits a journal listing: no account code, no cost centre or, with one more condition, a debit and a credit that are both zero. Because Lesson 146 wipes the earlier marks before each pass, what you see after a run is this period's exceptions and nothing older.

Will the macro catch an amount column that holds a word or a stray character?

Yes: IsNumeric asks of every cell whether its value can be treated as a number, and The Complete Excel Course with AI Integration builds that test in Lesson 150. The loop runs down the per-unit figure column of the sales sheet, and wherever an entry is not a number, a word, a note such as N/A or a stray character, it colours both that cell and the flag cell light red and records the entry as invalid. Pointed at the amount column of a journal export, the same lines catch the note someone typed where a figure belonged, before it breaks a total. Figures that arrive as text but still read as numbers are a separate fault, and the course deals with them elsewhere: the COUNT against COUNTA check of Lesson 35 shows them, and Power Query sets true number types at import (Lesson 158). Option Explicit, kept at the top of the module, catches any variable nobody declared.

The ledger export is a different length every month: how does the macro know where the data ends?

By measuring the sheet each time it runs instead of trusting a fixed range, and The Complete Excel Course with AI Integration teaches the measuring function in Lesson 145. GetLastUsedRow looks for the bottom-most cell holding anything, searching from the end of the sheet backwards, and hands that row number to whichever routine asked; an empty sheet is caught first and answered with zero. Add a line to the data and the answer moves with it, with nothing in the code edited. Declared Public in Lesson 146, it serves every module of FormatWizard, so each check covers exactly the rows present today. A ledger export that grows from one period to the next is therefore read to its final entry, never cut off at whatever length the macro was first written for, the fault that hides best because nothing on the sheet looks broken.

A colleague will run my macro at the next close: what has to be in place first?

Four things, each taught in The Complete Excel Course with AI Integration. The file is saved as a macro-enabled .xlsm (Lesson 140), because a standard workbook drops the code on saving. Your colleague meets the yellow bar that disables macros and chooses Enable Content, which Lesson 142 explains along with the trust settings behind it and the rule to enable content only for files you trust. The routine sits on a button or the Quick Access Toolbar (Lesson 139), so nobody has to open the editor to run it. And the master routine of Lesson 152 carries an error handler that says what went wrong in plain words and puts screen updating back, instead of stopping with a crash. Add the routine that clears the last run's flags (Lesson 146) and the same macro gives the same answer whoever presses the button.

What protects the workbook if a macro misbehaves halfway through a run?

Habits that The Complete Excel Course with AI Integration builds in before any check touches real rows. Ctrl+Z cannot undo a macro, a warning Lesson 137 gives with the very first recording, so a controller runs new code on a copy of the file, never on the only one. Debug.Print and the Immediate window (Lesson 151) show which cells a loop reads and in what order, so a mistake is caught before flags are written over hundreds of rows. Option Explicit (Lesson 144) forces every variable to be declared, which stops a misspelt name from quietly creating a second variable. The finished routine turns screen updating off for speed, and its error handler restores it and reports the fault (Lesson 152). The section also fixes real compile errors on camera, a missing End With and a misspelt call among them, so an error message reads as a clue rather than a scare.

If ChatGPT drafts the VBA for a close check, what must a controller be able to verify before running it?

Enough to read every line of it, and The Complete Excel Course with AI Integration trains exactly that. In Lesson 148 part of the macro is written with Claude or ChatGPT, each in its own window, and then corrected by hand, after the lessons before it have shown what each line does. The points to verify are the ones FormatWizard teaches: that the loop runs to the row GetLastUsedRow returns rather than to a fixed number (Lesson 145); that a cell of spaces counts as blank, which Trim handles (Lesson 147); that the message for each row starts empty, or one row's faults spill into the next (Lesson 148); and that two routines writing to one cell append rather than overwrite (Lesson 152). Debug.Print shows what the draft reads before it writes anything. An assistant types quickly; the controller decides whether the code is right.

Power Query refreshes the imports and Power Automate runs flows: what is left for VBA in a controller's workbook?

Everything that must decide row by row inside the workbook, and The Complete Excel Course with AI Integration teaches all three tools so you can divide the work between them. Power Query takes the import: a clean-up recorded as query steps reruns at every refresh, and a folder of period files combines without code (Lesson 166), work that once needed a macro. Power Automate Desktop drives Excel from outside, opening a workbook, reading rows and writing approvals back (Lesson 183), and it needs Windows. VBA keeps the work inside the workbook that must decide row by row and act on the sheet: flag, colour, clear and report, as FormatWizard does in one click. Office Scripts, the scripting of Excel on the web, are not among the lessons; for the desktop Excel a controller's pack lives in, the macro section runs complete from the first recording to error handling.

Can a macro freeze the period's figures once the month is closed?

Yes, by recording the steps you already take by hand, and The Complete Excel Course with AI Integration teaches both halves. Paste Special values, which turns formulas into fixed figures, is taught on the worksheet in Lesson 22, and the macro recorder of Lesson 137 takes down whatever you do, so selecting the period's range and pasting it as values becomes one shortcut. Recorded with relative references (Lesson 138), it works from wherever you start it rather than on one fixed range. Locking the closed sheet comes from the TaskFlow lesson on protecting a sheet and locking cells (Lesson 86), and the recorder captures that step too. Keep the live file untouched and run the freeze on the copy that becomes the period's record; from a button, it is one click at the end of every close.

Why build my own checking macro when free VBA downloads for finance are easy to find?

Because a macro you cannot read is a risk you sign for, and The Complete Excel Course with AI Integration gives you one you understand line by line. FormatWizard arrives as a starter workbook of sales records and a finished macro-enabled file holding every routine, so a routine that misbehaves can be compared, module by module, with one that works. Each part is one you typed: the function that finds the last row, the clean-up of old flags, the loop, the tests, the colours, the data-type check and the error handler. Change the columns it reads and the same file becomes a pre-close check on your own ledger export. Enabling a stranger's code is exactly what the trust settings of Lesson 142 warn against. The course page's free lessons show the teaching before a controller commits to anything.

How soon does the course put a usable macro in my hands, and how long is the whole run?

Within the first run of lessons, before any code. By Lesson 140 of The Complete Excel Course with AI Integration you have a recorded macro that formats whichever row you select, a button that runs it and a macro-enabled file that keeps it, enough to take a repeated formatting job off the close. The first VBA check, a loop that flags blanks, arrives at Lesson 147, and the full validation routine at Lesson 152, after 1 hour 16 minutes of video across 17 lessons. Every lesson is short, so the section fits into a few evenings. Typing each routine yourself, then aiming it at your own export, takes longer than the video and teaches more. Lifetime access keeps the section open for the day a new chore asks for a macro, and completing the course earns a Certificate of Completion with a verification link.

Some of the finance team use Macs: will a macro I build here work on their machines?

Yes, in desktop Excel for Mac as on Windows, since VBA is part of both, and The Complete Excel Course with AI Integration names Windows only for its Power Pivot and Power Automate sections. The lessons themselves are recorded on Windows: Lesson 139 notes that the Developer tab screens look slightly different on a Mac, and the shortcuts shown, Alt+F11 for the editor among them, are the Windows ones. Excel in a browser does not run VBA, so a pack shared for editing online keeps its macros for the desktop. For a mixed team the deciding details are the ones the section teaches anyway: the .xlsm format, the trust settings that let a file's code run, and a button that makes the routine easy to find for whoever opens the file.

Can I show a reviewer or an auditor exactly what my macro checked?

Yes, and the way The Complete Excel Course with AI Integration builds FormatWizard leaves evidence on the sheet and in the code. Every fault is written in words beside its row in the Flag column, a missing region, a missing salesperson or an invalid entry, with the cell itself coloured, so the result of a run can be filtered, printed and kept with the period's file (Lesson 148, Lesson 149). In the editor each routine sits in a module of its own (Lesson 142) under a name that says its job, and comments that start with a single quote explain the lines in plain words (Lesson 144). The master routine runs the checks in a fixed order and ends with a message that the run succeeded (Lesson 152). A reviewer who opens the file can read what was tested and see where it failed, a trail that a check done by eye never leaves behind.

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.