The Complete Excel Course with AI Integration
Excel macros and VBA for financial planners
Before each review a planner gives the same client workbook the same treatment: shortfall years picked out, blank fields chased, stray notes found in columns of figures, the layout tidied for the meeting. The Complete Excel Course with AI Integration turns that routine into macros on FormatWizard, an industry-standard project, and the lessons listed here run from a single recorded macro to one VBA routine that audits a whole client file.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Record a macro that formats a shortfall row of a client's cash-flow sheet, then record it again with relative references so one shortcut formats whichever row you select.
- Run macros from a button on the Quick Access Toolbar or the Developer tab, and save the workbook as .xlsm so the code stays with the file.
- Open the VBA editor with Alt+F11, read the code a recording produced, and enable content only in files you trust.
- Write a VBA routine with declared variables plus a home-made function that locates the bottom of the data, so every check reaches the last client however long the list grows.
- Loop down every row with For Next and If to flag a client record that lacks its adviser or risk profile, with one message per row and the empty cell coloured.
- Use IsNumeric to catch a valuation entry that cannot count as a figure, whether a word, an N/A note or a stray symbol, before a total silently skips it.
- Trace a routine by printing what it reads to the Immediate window with Debug.Print, then run every check from one master macro whose error handler reports what went wrong.
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.
Built on a sales sheet of some five thousand rows, it grows from a recorded formatting macro into a VBA tool that clears old flags, marks missing regions and salespeople, finds entries that are not numbers and runs the lot from a single routine. A planner's client file takes the same checks under its own column names.
-
Project 13
AutoFlow
The weekly report routine, run by a flow instead of by you.
AutoFlow is the course's flow-building project in Power Automate Desktop, automation that works on Excel from outside the workbook: flows that open files, read and write cells, loop over rows and ask Yes or No, all without code, on Windows. Beside FormatWizard it shows a planner which routines suit a flow and which suit a macro.
-
Project 14
Agentic AI in Excel
AI finds and fixes the formula; you check it before it counts.
The course's AI project, where Copilot, ChatGPT and Claude take on real tasks and every result is checked by a person. A planner who lets an AI draft part of a macro, as Lesson 148 does, brings that same checking habit to the code.
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 if formulas and formatting are familiar: no VBA is assumed, and your first recorded macro arrives almost at once. Brand new to spreadsheets? Start with Lesson 1 and return once a client's budget sheet feels easy. Recording macros already? Jump to Lesson 141, where the editor opens and the code you write yourself begins.
17 of 186 lessons · 1 h 16 min
14 VBA and macros in Excel: FormatWizard Recording, running and keeping macros: what macros and VBA are, a formatting macro recorded on a fixed row and recorded again to follow the selected row, then a Developer tab and a Quick Access Toolbar button, and the .xlsm format that holds the code. A client's shortfall rows are formatted the way these lessons format rows with a negative amount.
- 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 The VBA editor learnt as a workspace: Alt+F11, the Project Explorer and its modules, the recorded code read line by line, macro security and trust settings, and a first compile error put right. A planner sent a macro-enabled file learns here when its content deserves enabling.
- 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 instead of recording it: a worksheet held in a variable, Option Explicit, declared types, what separates a Sub from a Function, and a GetLastUsedRow function that later routines reuse, so a check always reaches the last client on the list.
- 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 marking each missing region, an If Else that builds one message per row, light-red highlights set with RGB, and IsNumeric marking entries in number columns that are not numbers. Missing advisers, risk profiles and valuations are found 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, then assembly: Debug.Print listing in the Immediate window what the code reads before it changes anything, then RunFullValidation, one master macro with an error handler, screen updating paused for speed and each check adding to the flag column rather than overwriting it.
- 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.
For financial planners, do Excel macros and VBA belong inside the plan model itself, or in the work around it?
Around it, which is where they save a planner the most time. The Complete Excel Course with AI Integration from Coding Liquids teaches them on FormatWizard, an industry-standard project designed after talking with people from many different industries, and every routine built on it carries over to a client file. Recorded macros take on the formatting a review pack needs every time (Lesson 137, Lesson 138); VBA takes on the checking, with a loop that flags missing fields (Lesson 147), IsNumeric for notes typed into columns of figures (Lesson 150) and one master routine with an error handler that runs it all (Lesson 152). All 17 lessons of FormatWizard are on this page, 1 hour 16 minutes that take you from your first recorded macro to the completed tool, with a starter workbook and the complete macro-enabled file to compare against. The arithmetic of the plan itself, FV, inflation and withdrawals, stays in cells, where WealthFlow puts it and where a client can follow every figure.
A client's cash-flow sheet needs its shortfall years picked out before every meeting: can a recorded macro do that?
Yes, at a keystroke, and The Complete Excel Course with AI Integration shows exactly where a recording's limits lie. Lesson 137 records a macro that makes a row with a negative amount bold, italic and highlighted, names it, gives it a Ctrl shortcut and stores it in the workbook; Lesson 138 records it again with Use Relative References, so the same shortcut formats whichever row you start from rather than the row first recorded. Select a shortfall year on a client's sheet, press the keys, and the row is marked. Lesson 142 then makes the point a planner needs to hear: the recorded code formats the row it is given without checking that the figure is negative. Deciding which rows qualify is what VBA adds, with loops and If tests from Lesson 147 onwards, while conditional formatting stays the tool for colour that follows the figures by itself.
Can VBA check a client file for blank advisers, missing risk profiles or empty review dates?
Yes, record by record, and The Complete Excel Course with AI Integration builds exactly that check on FormatWizard's sales sheet before you aim it at a client list. In Lesson 147 a For Next loop visits each record from the second down to the last and, where the Region cell is empty once Trim has stripped any spaces, writes Region missing beside it. Lesson 148 tests two fields in a single pass and joins their messages, so a record lacking both says so on one line; Lesson 149 shades each gap a soft red with RGB. Aim those tests at the adviser, risk profile and next review columns of your client list and every incomplete record announces itself before the meeting, in words you can filter on and in a colour you can spot from across the room. Lesson 146 wipes the previous run's flags first, so nothing stale survives into the new one.
Valuation columns sometimes hold notes such as 'awaiting' or N/A instead of figures: can a macro catch them?
Yes: Lesson 150 in The Complete Excel Course with AI Integration writes exactly that check with IsNumeric. The routine walks a column of per-unit figures row by row, and where an entry cannot be read as a number, whether a word, an N/A or a stray symbol, it colours that cell and its flag cell light red and writes a message calling the entry invalid. On a planner's sheet the same few lines guard a column of valuations or contributions, so a note typed where a figure belongs is found before a total quietly leaves it out. The lesson also shows Option Explicit catching a variable that was never declared, the compile error that stops a typo turning into a wrong answer. Figures stored as text are a different fault, and the course fixes those elsewhere, with the COUNT against COUNTA check and with Power Query's data types.
Running a macro wipes Undo: how does a planner keep a client's workbook safe?
By practising on a copy and building the safeguards into the code, which is how The Complete Excel Course with AI Integration works. Lesson 137 makes the warning plain: Ctrl+Z cannot undo a macro, so the lessons run on the FormatWizard starter file rather than on anything that matters. Lesson 142 adds the trust rule, enabling content only for files you trust. Lesson 146 clears old flags before each run, so yesterday's messages never mix with today's. Lesson 151 prints to the Immediate window with Debug.Print to show which cells the code reads, in order, so an error is caught before it is written down a whole column. Lesson 152 wraps the routine in an error handler that reports what failed instead of halting halfway. Save the client file first, run the macro, then read the flags: that order protects every figure in it.
If ChatGPT or Claude drafts a macro for my client reports, will I be able to tell whether the code is safe to run?
Yes, and The Complete Excel Course with AI Integration trains that judgement on purpose. In Lesson 148, once the two-check routine is built, learners hand parts of the macro to Claude or ChatGPT, each in its own window, and then correct what comes back, so the AI's draft is read rather than trusted. The lessons before it supply the reading: what a module, a worksheet variable and a declared type mean (Lesson 143, Lesson 144), what a loop and an If will do to every row, and why flags are cleared before the next run. Lesson 151 lets you watch the code's choices in the Immediate window before it touches the sheet. For a planner that is the difference between pasting code into a client's file and approving it: you know which cells it reads, what it writes and how to stop it.
Power Automate is called the replacement for macros: should a planner still learn VBA?
Yes, because the two automate from different places, and The Complete Excel Course with AI Integration teaches both. A VBA macro lives inside the workbook: FormatWizard formats, checks and flags a whole sheet in one run, and Lesson 185 itself notes that a macro usually runs faster than a flow working through rows one at a time. Power Automate Desktop acts on the workbook from outside it: AutoFlow's flows open Excel, read and write cells, loop over rows and ask Yes or No questions, and their steps can be read without code. So the check inside a client file suits a macro, while a routine that opens several files or other programs suits a flow, which needs Excel for Windows. A planner who knows both chooses per job, instead of being told that one has replaced the other, and has the speed of code and the readability of a flow on hand.
Should scenario testing of a client's plan live in a macro or in the projection's own formulas?
In the formulas first, and The Complete Excel Course with AI Integration shows why with WealthFlow, where each scenario is a changed input and the whole projection answers at once. Lesson 131 stress-tests withdrawals by lowering the return and moving inflation, and Lesson 134 reads retirement scenarios by altering the withdrawal level and the number of years invested, every figure in view while the client watches. A macro earns its place once the same set of cases is run again and again: the variables, loops and Debug.Print of Lesson 144 to Lesson 151 are the parts such a routine is made of, though the course builds its loops over rows of data rather than over scenarios, and Goal Seek is not taught. Build the plan in cells, prove it there, and automate only the repetition that is left.
Our paraplanners prepare the review packs: can they run the checks with one click while the VBA stays out of their way?
Yes: The Complete Excel Course with AI Integration puts macros where anyone in the practice can reach them. Lesson 139 turns on the Developer tab and adds a macro to the Quick Access Toolbar as a button with an icon of its own, so running the check takes one click. Lesson 137 gives a macro a keyboard shortcut and introduces the Personal Macro Workbook, which keeps a macro available whenever Excel opens on that computer. Lesson 140 saves the file as .xlsm so the code travels with it, and Lesson 142 shows the yellow bar a colleague sees on opening it and when to enable the content. The master routine of Lesson 152 ends with a success message, and its error handler explains a failure in words, so the person pressing the button knows whether the file passed. The VBA stays yours; the button is theirs.
Can my formatting macros stay out of the client files I send?
Yes: keep them in your Personal Macro Workbook, which The Complete Excel Course with AI Integration introduces in Lesson 137, and the recorded macros stay on your computer while client files remain ordinary workbooks. That hidden workbook opens with Excel, so a formatting macro stored there can be run on whichever client file is open, and none of it is saved into the file you send. Lesson 140 explains the other half: a standard .xlsx drops every macro when it is saved, while .xlsm keeps the code with the data, so a client pack saved as .xlsx goes out clean. The checking routines of the later lessons are written for the workbook that holds them, ThisWorkbook in the code (Lesson 143), which is why FormatWizard keeps its data and its VBA together in one .xlsm, the complete version of which is among the practice files.
Data validation already guards my client templates: what does a VBA check add?
It audits the rows already in the file, and The Complete Excel Course with AI Integration teaches both tools so each covers its own ground. A drop-down list only vets a value as someone types it; values pasted in, imported from a back-office export or typed before the list existed stay as they were. A VBA routine reads every row each time it runs: Lesson 147 and Lesson 148 flag the empty fields, Lesson 150 flags figures that are not numbers, and Lesson 152 runs the lot and reports success, across thousands of rows in one pass. A planner gets both layers: validation from Lesson 45 keeps new entries tidy, and the macro audits the whole file before it reaches a review, leaving written flags a colleague can filter on. Pasted data, the kind every client file collects, is where the macro earns its keep.
I have never written code: how far into these lessons before a macro of my own runs on a client file?
Your first macro runs in Lesson 137, near the very start, and The Complete Excel Course with AI Integration keeps every step after it as gentle. That lesson records and runs a formatting macro without a line of code; by Lesson 139 it sits on a button, and by Lesson 140 it is saved in a file that keeps it. Code begins in Lesson 143 with a single line that points at a worksheet, and each lesson after adds one idea: variables, a function, a loop, an If, a colour, a type check. The whole path takes 1 hour 16 minutes, and the FormatWizard starter and complete files let you hold your code against working code at every stage. Lifetime access means the lessons are still there when the next routine needs writing, and on the instructor support plan, the instructor replies in writing to questions about your own client file.
FormatWizard checks sales rows: what changes in the code before it checks my client list?
Very little: the column letters and the messages. In The Complete Excel Course with AI Integration the routines name their columns plainly, Region in column B, Salesperson in C, the flag in H, and find the last row for themselves with the GetLastUsedRow function built in Lesson 145, so they reach the bottom of a list of any length. Change B and C to the columns holding a client's adviser and risk profile, change the message text, and the loop of Lesson 147 checks your file instead. Lesson 149 shows the slip to watch for: forget to change one letter and the wrong column lights up. Lesson 143 points the code at a sheet by its name, so a client file whose data sits on a sheet called Clients needs that one word changed. Thousands of client rows are no burden either, since the lessons' own sheet runs past five thousand.
Could I turn a planning calculation, such as the real rate of return, into a VBA function of my own?
Yes: The Complete Excel Course with AI Integration teaches the shape every VBA function takes, and it also shows why that particular calculation is happier in a cell. Lesson 144 sets out the difference that matters: a Sub carries out an action and hands nothing back, while a Function returns a result to whatever called it. Lesson 145 then builds one, GetLastUsedRow, with an early Exit Function for an empty sheet, and later routines call it instead of repeating its lines, which is the whole case for a function: logic written once and reused everywhere. The course's functions serve other code rather than being typed into cells. The real rate itself is a one-line formula on WealthFlow's withdrawal sheet (Lesson 130), return and inflation in, real rate out, open to anyone who clicks the cell. A planner keeps client-facing arithmetic in formulas like that and saves VBA functions for logic the code reuses.
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 financial planners
- Lookups for financial planners
- PivotTables for financial planners
- Excel charts for financial planners
- Excel dashboards for financial planners
- Conditional formatting for planners
- Data cleaning for financial planners
- Data validation for financial planners
- Excel tables for financial planners
- Text functions for financial planners
- Power Pivot and DAX for planners
- Power Automate for financial planners
- Claude in Excel for financial planners