The Complete Excel Course with AI Integration
Excel macros and VBA for credit controllers
For credit controllers who spend the start of each week on the same export: credit notes picked out by hand, blank due dates hunted by eye, a balance column checked for stray notes. The Complete Excel Course with AI Integration turns that routine into macros and VBA on FormatWizard, an industry-standard project, and this page picks out its lessons in the order a check is built: record, save, read the code, loop, flag, debug and run it all at once.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Record the weekly export's formatting as a macro, with relative references so one shortcut formats whichever credit note row you select.
- Run the routine from a Developer tab button or the Quick Access Toolbar, and keep it in a macro-enabled .xlsm workbook the team can open safely.
- Write a VBA function that finds where today's ledger export ends, so every check reaches the last invoice however long the file has grown.
- Loop through every invoice with For Next and If, writing a flag such as a missing customer code or due date into a flag column, every fault of a row in one message.
- Colour each faulty cell with Interior.Color and RGB, and clear the last run's flags and fills before every new check.
- Catch an entry in the balance or amount column that is not a number, a word, an N/A or a stray character, with IsNumeric, and mark it for correction.
- Watch the code with Debug.Print and the Immediate window, then run every check from one macro with an error handler and screen updating switched off.
- Draft parts of a macro with Claude or ChatGPT, correct them, and test the result against a QA checklist before it runs on the ledger.
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 in the course on a sheet of sales records, it is the pattern for a ledger's morning check: old flags cleared, every row read for a missing value or a figure that is not a number, each fault written into a flag column and coloured, and the whole run behind an error handler.
-
Project 14
Agentic AI in Excel
AI finds and fixes the formula; you check it before it counts.
The course's AI project, with Copilot, ChatGPT and Claude on the same real tasks and a QA checklist for every answer; it gives a credit controller the routine for testing an assistant's draft of a ledger macro before a single row is changed.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 18 of them, 1 h 18 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 if you already keep the ledger in Excel and write simple formulas: the section assumes no programming. New to Excel? Begin at Lesson 1, and the relative and absolute references of Lesson 10 will be waiting when the macro recorder uses them. Recording macros already? Go to Lesson 141 and the VBA editor. The QA checklist of Lesson 99 sits earlier in the course; watch it before Lesson 148, where Claude or ChatGPT drafts part of the code.
18 of 186 lessons · 1 h 18 min
10 Boosting productivity with AI in Excel (Copilot, ChatGPT and Claude) A quick QA checklist for whatever an assistant returns, kept beside the VBA lessons for the moment Claude or ChatGPT drafts part of a ledger macro and every line has to earn its place before it runs.
- 99 Check AI output in Excel A quick QA checklist for Copilot results 2 min
14 VBA and macros in Excel: FormatWizard Macros with no code: what a macro is and what FormatWizard becomes, a first recording that formats a row holding a negative amount, absolute and then relative references, a Developer tab button and a Quick Access Toolbar icon, and the .xlsm format that keeps the macros when the file is saved.
- 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 Reading and writing code: the VBA editor opened with Alt+F11, macro security and the trust settings colleagues meet on opening the file, a first line that points at a worksheet, variables and data types under Option Explicit, and GetLastUsedRow, the function that tells each check where today's data ends.
- 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 a ledger needs, one to a lesson: old flags and fills cleared with If statements, a For Next loop that flags a missing value, two tests gathered into one FlagText message, the faulty cell coloured with RGB, and IsNumeric for an amount or per-unit figure that is not a number. The lessons check sales records; an invoice list is checked the same way.
- 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 see which cells the code reads before it writes a flag, then RunFullValidation, which clears, checks and colours in one run, appends rather than overwrites, and reports any error 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.
Excel macros and VBA for credit controllers: what can a macro do to the morning's ledger export, and where can I learn to write one?
It can format the export, check every invoice line and point at each fault in one click, and The Complete Excel Course with AI Integration from Coding Liquids teaches the lot on FormatWizard, an industry-standard project designed after talking with people from many different industries. You start by recording: a macro that formats a row holding a negative amount, the shape of a credit note on a ledger, run from a button (Lesson 137 to Lesson 139). Then you write VBA: a function that finds the last row of a file of any length (Lesson 145), a loop that flags missing values (Lesson 147), IsNumeric for entries that are not numbers (Lesson 150) and one master macro with an error handler (Lesson 152). This page picks out the 18 lessons a credit controller needs for it, 1 hour 18 minutes in all, each built on the course's files with the finished workbook beside yours.
Every Monday I format the same aged debt export by hand: can a recorded macro do it in one click?
Yes, and recording it needs no code at all. In The Complete Excel Course with AI Integration, Lesson 137 records a first macro: you name it, give it a shortcut, store it in the workbook and format a row, and from then on the shortcut repeats every step. The lesson's row holds a negative amount, which on a ledger is a credit note or cash not yet allocated. Lesson 138 switches on relative references, so the same keystroke formats whichever row you select instead of one fixed row, and Lesson 139 puts the macro on a button and in the Quick Access Toolbar. Save the file as a macro-enabled .xlsm (Lesson 140) and the routine is there next Monday. Most of what you do with the mouse records the same way, so the column widths, bold headings and number formats the finance director expects become one click.
Where does a recorded macro stop being enough, so that VBA has to be written?
At the first decision. A recorder replays clicks; it cannot look at a row and choose. The Complete Excel Course with AI Integration makes the point in Lesson 142: the recorded code formats a row without checking that its amount is negative at all. Ledger checks are decisions from start to finish: is the due date blank, is the customer code missing, is that balance a number or a note? Those need VBA, and the course writes it with you: an If statement that tests a cell (Lesson 146), a For Next loop that asks the question of every row (Lesson 147), several tests gathered into one message per row (Lesson 148) and IsNumeric for the figure that is not one (Lesson 150). Keep recording for formatting that never varies, and write code wherever the right action depends on what a row holds.
The export is a different length every day: will the macro still reach the last invoice?
Yes: the code measures the export afresh on every run, so a short Monday file and a month-end file of thousands of lines are both read to their final invoice. In The Complete Excel Course with AI Integration you write that measuring step yourself, in Lesson 145. GetLastUsedRow is a function, a piece of code that hands back an answer, and it finds the lowest filled row by searching from the foot of the sheet upwards, while a COUNTA test returns zero at once for a blank sheet. Add a row to the data and its answer follows. Each later check takes that answer as its stopping point, and Lesson 146 declines to run at all, with a message, when the sheet holds headers and nothing else. No fixed range is typed into the code, so nothing needs editing as the ledger grows through the month.
Can a macro flag the invoices with no due date, customer code or collector before I age the ledger?
Yes, and catching them first spares the ageing some quiet errors: an invoice with no due date cannot be aged, one with no collector lands on nobody's chasing list, and one with no customer code never meets its receipt. The Complete Excel Course with AI Integration builds the check in Lesson 147, where a loop reads each line of the sheet and writes a short note beside any line whose cell is empty, trimming it first so a cell of spaces counts as empty too. Lesson 148 asks two questions of every line in the same pass and joins the answers into one FlagText note, so a single line can say what is missing in both places. The lessons look for a region and a salesperson on sales records; name your three ledger columns instead and the morning's list of incomplete invoices is waiting in the flag column before the first call.
A collector typed a note into the balance column: can VBA find entries like that before the totals go wrong?
Yes, IsNumeric does exactly that, and The Complete Excel Course with AI Integration teaches it in Lesson 150. Inside a loop over every row, the macro asks of each entry in a number column whether it can be treated as a number; where the answer is no, it colours the cell and its flag light red and writes a message saying the value is invalid. The lesson checks a per-unit figure on sales records; point it at your balance or amount column and it catches the word disputed, an N/A or a stray character typed where a figure belongs, any of which a SUMIFS total would skip without a sound. The message says invalid rather than missing, so whoever corrects it knows a value is there and wrong. Run it before the aged debt report and the report's totals stop losing those lines.
Can a macro mark the accounts that are over their credit limit or more than 90 days overdue?
Yes: the If statements The Complete Excel Course with AI Integration teaches take a comparison as readily as a blank test. Lesson 146 already compares numbers, stopping the macro when the last row is less than two, and the loop of Lesson 147 reads each row in turn. An If that sets the balance against the limit in the next column, or the days-overdue figure your TODAY formula fills (Lesson 39) against 90, writes Over limit or Over 90 into the flag column the way the lessons write Region missing. Where colour alone is wanted, conditional formatting does it with no code, and the course teaches that too (Lesson 82). The macro earns its place when the flags must be written out, joined to the completeness checks in one FlagText message and run on demand from a button before the morning's calls.
Ctrl+Z cannot undo a macro: how do I run one on the live ledger without risking it?
With the habits The Complete Excel Course with AI Integration builds in from the start. Lesson 137 says it plainly: once a macro has run, Ctrl+Z will not bring the sheet back, so the safe routine is to test on a saved copy of the export before the live file. Lesson 151 adds Debug.Print and the Immediate window, which show which cells the code is reading, row by row, without writing a thing to the sheet, so a loop pointed at the wrong column is caught before it flags a single invoice. FormatWizard itself writes its findings into a flag column and colours cells rather than changing balances, and Lesson 152 wraps the whole run in an error handler that reports what went wrong and puts screen updating back. Test first, watch the reads, then run it for real.
Could ChatGPT or Claude write the ledger macro for me, and how would I know it is safe to run?
They can draft it, and The Complete Excel Course with AI Integration teaches you to be the one who says whether the draft is right. In Lesson 148 you write parts of the macro with Claude or ChatGPT, each in its own window, and then correct what comes back, so the habit forms on real code rather than on trust. You can judge it because by then you have written the same pieces yourself: the last-row function, the loop, the If tests and the flag message. Lesson 99 supplies a quick QA checklist for anything an assistant returns, and Lesson 151 lets you watch the code read the sheet before it writes. In the course the macro drafting is done with ChatGPT and Claude, while Copilot works on formulas, PivotTables and analysis; whichever assistant your firm allows, the checking is the same.
The whole credit team will use this macro: how do I share it so it runs on their machines?
Save it inside the workbook and send the .xlsm, and The Complete Excel Course with AI Integration covers each step of that hand-over. Lesson 137 stores the macro in the workbook rather than on your own computer, which is what lets it travel; the Personal Macro Workbook, also shown there, is for routines only you need in every file. Lesson 140 explains why the first save needs Save As and the macro-enabled .xlsm format, since a standard .xlsx strips the code out. Lesson 142 covers the yellow bar colleagues will see on opening it, and the rule to enable content only for files they trust. Each person can add the macro to their own Quick Access Toolbar (Lesson 139). Macros run in desktop Excel for Windows and for Mac, though not in Excel on the web, and the lessons are recorded on Windows.
With Power Query and Copilot in the same Excel, is VBA still worth a credit controller's time?
Yes, because it does a job neither of the others does: it acts on the sheet, row by row, exactly as you tell it. Power Query, which The Complete Excel Course with AI Integration teaches in SalesFusion, cleans and reshapes an export that arrives again and again, and Copilot answers questions about the data in front of it. Neither colours the faulty cell in the ledger itself, writes a flag beside each invoice with a missing due date, clears yesterday's marks and runs the lot from one button. FormatWizard does, from Lesson 146 to Lesson 152, and a credit team's shared workbooks are full of jobs of that shape. The course keeps all three in your hands, with Power Automate Desktop after them, on Windows, for routines that drive Excel from outside (Lesson 174), so each chore goes to the tool that suits it.
I have never written code: can a credit controller really learn VBA from this?
Yes, and the way a credit controller already thinks is half the preparation. The Complete Excel Course with AI Integration opens the section for beginners and keeps code away until the recorder has shown what a macro is (Lesson 136 to Lesson 140). When typing begins, it starts with one line that points at a worksheet (Lesson 143), then explains variables, data types and the difference between a Sub and a Function for Excel beginners (Lesson 144), with Option Explicit there to catch a mistyped name. The rules you apply every day, if the due date is blank then flag it, if the balance is not a number then mark it, are exactly what the If statements of the later lessons say. Debugging is taught for beginners too (Lesson 151), and with the instructor support plan a question about your own code gets a written answer from the instructor.
A macro from a forum or a free download promises to sort out my ledger: is it safe to run?
Safe once you can read it, and The Complete Excel Course with AI Integration gives you the reading. Lesson 142 covers macro security: the yellow bar that disables code in a file from elsewhere, and the rule to enable content only for files you trust. Lesson 141 opens the VBA editor and its Project Explorer, where every module of a downloaded workbook can be inspected before anything runs, and the lessons after it teach the vocabulary such code is written in: worksheets and ranges, variables, If statements, loops and cell colours. Try it first on a copy of the ledger. Better still, start from FormatWizard: its starter workbook and the finished macro-enabled file come with the course, written to be understood line by line and adapted to your own columns, so the macro you run is one you could have written.
How soon could a macro be checking my ledger every morning?
Well within the 1 hour 18 minutes of this path, since the first useful macro comes early. In The Complete Excel Course with AI Integration a recorded macro on a button, saved in a macro-enabled workbook, is yours by Lesson 140, enough to format the export in one click from then on. The first loop that flags a missing value arrives in Lesson 147, and from there each short lesson adds a check to the same macro: the two-test flag message, the colour, IsNumeric. By Lesson 152 the whole morning's check runs from one subroutine with an error handler. Every lesson in the section runs a few minutes, so the path fits into a handful of sittings, lifetime access keeps it open for the day a new column needs one more check, and completing the course earns a Certificate of Completion.
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 credit controllers
- Lookups for credit controllers
- PivotTables for credit controllers
- Excel charts for credit controllers
- Dashboards for credit controllers
- Conditional formatting in credit control
- Data cleaning for credit controllers
- Data validation for credit controllers
- Excel tables for credit controllers
- Text functions for credit controllers
- Date functions for credit controllers
- Dynamic arrays for credit controllers
- Power Query for credit controllers
- Power Pivot and DAX for credit control
- Power Automate for credit controllers
- Copilot in Excel for credit controllers
- ChatGPT for credit controllers
- Claude in Excel for credit controllers