The Complete Excel Course with AI Integration

Excel macros and VBA for credit analysts

Checking a loan tape or a spread's input sheet row by row eats hours a credit analyst should spend on the borrower. The Complete Excel Course with AI Integration hands that checking to Excel macros and VBA through FormatWizard, an industry-standard workbook built here from first recording to finished audit: recorded macros and buttons, the VBA editor, loops that flag and colour faults, IsNumeric, Debug.Print and one master macro with 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:

  • Record a macro that formats a flagged row in one keystroke, with relative references so it works on whichever facility you select.
  • Put a macro on the Developer tab or on a toolbar button of its own, and save the workbook as .xlsm so the code stays with the file.
  • Read and edit VBA in the editor: modules, a worksheet variable, Option Explicit and GetLastUsedRow, which locates the bottom of a tape however long it grows.
  • Loop down every row with For Next and If tests that flag an empty branch, sector or officer field, and colour each gap with an RGB fill.
  • Mark balance, limit and rate cells holding a word, an N/A or a stray character with IsNumeric, building one message per row that lists every fault.
  • Watch what a macro reads with Debug.Print before it writes a single flag on a credit file.
  • Join every check into one master routine with an error handler and screen updating switched off, run from a single button.

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 more than five thousand rows, the course's VBA project grows from recorded formatting into a full audit: old flags cleared, empty fields and non-numbers marked and coloured, all under one master routine. Pointed at a loan tape or a spread's inputs, the same code audits a credit file.

  • Project 13

    AutoFlow

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

    The course's Power Automate Desktop project, and the code-free counterpart to FormatWizard: the same read, test and write logic over Excel rows laid out as visible steps, the better fit when a routine must also open files or click through other applications. Its lessons need Windows.

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

Start at Lesson 136 if Excel tables and formulas are familiar: FormatWizard begins with the recorder, so no code is typed until the editor opens. Someone opening Excel for the first time should take the course from Lesson 1 and come back when a sheet of data no longer feels foreign. Already recording macros? Go to Lesson 141, where the code starts. Writing VBA already? Lesson 146 is where the checking routines begin. The lessons are shown on Windows; on a Mac the screens look slightly different.

17 of 186 lessons · 1 h 16 min

14 VBA and macros in Excel: FormatWizard 5 of 17 lessons · 19 min Macros without code: what a macro and VBA are, a first macro recorded with fixed references and a second with relative ones, so one keystroke formats whichever row you start from, then a Developer tab, a Quick Access Toolbar button and the .xlsm format that keeps the code. For a credit desk that means exhibits styled the same way on every run.
  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 writing code: the VBA editor opened with Alt+F11, a Windows shortcut, macro security and the Enable Content bar, modules, a first line that points code at a named sheet, variables and data types under Option Explicit, a Sub set against a Function, and GetLastUsedRow, which finds the bottom of a sheet whatever its length. That function is what lets a macro meet a tape that grows every month.
  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 themselves, on a sales sheet: a reset that clears old flags and fills, a loop that walks every row and writes a note wherever a field is empty, an If Else that gathers several faults into one message per row, a soft red fill mixed with RGB, and IsNumeric marking entries in number columns that hold no number. Swap the sales columns for branch, sector, officer, balance and limit, and the same code audits a tape.
  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 Trust before use: Debug.Print sends what the code reads to the Immediate window and leaves the sheet untouched, then one master macro calls every check in order with screen updating off and an error handler that reports a fault in words. That is the routine to run before a committee paper is built on the tape.
  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.

Where would Excel macros and VBA save a credit analyst the most time: the loan tape, the spread or the committee pack?

The loan tape first, then the spread's inputs, then the pack's exhibits, and The Complete Excel Course with AI Integration from Coding Liquids builds the tool for all three. FormatWizard, an industry-standard workbook designed after talking with people from many different industries, starts with recorded macros that style a row in one keystroke and ends with VBA that audits a sheet of more than five thousand rows top to bottom: empty fields flagged, figures that are not numbers marked, every fault coloured, the whole run guarded by an error handler. Pointed at the month's tape, that afternoon of scrolling shrinks to seconds; pointed at a spread's input sheet, it guards every ratio built on top; the recorded macros keep committee exhibits consistent. Every step sits in the 17 lessons below, 1 hour 16 minutes of video from first recording to finished audit.

A facility can be missing its sector and its officer at once: will the macro report both faults?

Yes, in one cell, and The Complete Excel Course with AI Integration shows why that takes care. Lesson 148 builds a FlagText message for each row: the text is emptied at the start of every pass, each failed check adds its own words, and a pipe separates them, so a facility missing both fields reads sector missing and officer missing in the flag column, while a row missing one says only that. Forget to empty it and one row's faults spill into the next, which the lesson points out. Lesson 149 then colours each offending cell soft red, so the gaps show in place as well as in words, and the master macro of Lesson 152 makes a later check add to the message rather than overwrite it. A reviewer filters the flag column and reads, row by row, exactly what each facility still needs.

New facilities are booked every month: will the macro still find the tape's last row?

Yes, because The Complete Excel Course with AI Integration teaches you to look the row up instead of typing it. Lesson 145 builds GetLastUsedRow: Find searches the sheet upwards from the bottom for the last entry and hands back its row number, with a COUNTA guard that stops it on an empty sheet. On the FormatWizard data it reports the last row, then one row further down the moment a line is added. Every check that follows loops from row 2 to whatever that function returns, so a tape of four thousand facilities this month and four thousand two hundred next month is covered end to end with no edit to the code. Lesson 146 then makes the function Public, so every module you add later reuses the same row-finder instead of guessing.

Can I record a macro that formats a credit paper's exhibits the same way every time?

Yes, and the recorder does the writing for you. The Complete Excel Course with AI Integration starts FormatWizard with it: Lesson 137 records bold, italic and a highlight on one row, names the macro, gives it a Ctrl shortcut and stores it in the workbook; Lesson 138 records again with relative references, so the same keystroke formats whichever row you select. Lesson 139 adds the Developer tab and gives the macro a toolbar button of its own. For a credit paper that means a watch-list row, a total line or a heading styled identically whoever presses it. Two habits come with it: undo cannot reverse a macro, so the lessons reset rows by hand between runs, and a macro kept in the Personal Macro Workbook is there in every file you open on that computer.

The spreading template I inherited runs macros nobody understands: will the course let me read and fix them?

Yes: reading code comes before writing it in The Complete Excel Course with AI Integration. Lesson 141 opens the VBA editor with Alt+F11 and tours the Project Explorer, the modules and the code window, so you can find where an inherited macro lives; Lesson 142 deals with the Enable Content bar and with a compile error, a missing End With, fixed in place. Lesson 143 and Lesson 144 explain the line that points code at a named sheet, what variables and data types are, and why Option Explicit catches a mistyped name. Lesson 151 then shows Debug.Print, which lets you watch what an unfamiliar routine reads, row by row, without it touching the sheet. A template's logic stops being a black box and becomes code you can change with confidence.

Why does the macro flag faulty facilities instead of deleting them from the tape?

Because a credit file has to show what the system sent, and The Complete Excel Course with AI Integration builds FormatWizard on that principle. Its checks never remove a row: Lesson 147 writes a note in a flag column, Lesson 149 paints the offending cell, and the data itself stays exactly as it arrived. At a lender that matters. A deleted facility vanishes from every total without a trace, and nobody can later show what was taken out or why; a flag, by contrast, can be filtered, counted and cleared. Lesson 146 supplies the clearing: one routine wipes the last run's notes and fills, so every run starts from an empty column. The tape stays whole, and the flag column becomes the exceptions list you hand to whoever fixes the source system.

A macro cannot be undone: how do I test one safely on a credit file?

On a copy, with Debug.Print first, the way The Complete Excel Course with AI Integration does it. Ctrl+Z cannot reverse what a macro has done, a point Lesson 137 makes as soon as the first macro runs, so FormatWizard resets its test rows by hand and keeps a starter file beside the finished one. Lesson 151 adds the tester's tool: Debug.Print writes to the Immediate window, opened with Ctrl+G, and nothing to the sheet, so you can watch the loop read each row number and its value before any flag is written; a misread column shows up in the first five rows instead of after five thousand. The master macro of Lesson 152 then runs under an error handler. For a credit file, run the finished macro on a saved copy of the tape, compare, and only then on the live one.

How do macros travel between colleagues on a credit team without being stripped along the way?

Inside a macro-enabled workbook, and The Complete Excel Course with AI Integration shows the trap that strips them. Lesson 140 tries a plain save first and meets Excel's warning, because an ordinary .xlsx strips out every macro, then uses Save As with the Excel Macro-Enabled Workbook type, .xlsm, the format to keep for any file with code. Lesson 139 gives a macro its own button, so running it takes one click instead of a hunt through the macro list, and Lesson 142 explains what they see when the file opens: a yellow bar holding the macros back until Enable Content is pressed, which your team's own template earns. Formatting macros you use alone can live in the Personal Macro Workbook from Lesson 137, at hand in every file on your computer without adding code to the shared template.

A borrower sends a financial model with macros inside: should I click Enable Content?

Read the code first, then decide, and The Complete Excel Course with AI Integration teaches both steps. Lesson 142 explains the yellow bar that holds macros back when a file opens, and its rule is the one to keep: Enable Content is for files you trust. A model from outside the bank earns that trust by being read. Lesson 141 shows how to open the VBA editor and find every module in the Project Explorer without running anything, and the lessons after it teach enough of the language, worksheets, loops, If tests and what a line writes to which cell, to see whether a routine only formats and checks or does something you would not want. Lesson 151 adds Debug.Print for watching what code reads before it writes. Where doubt remains, the figures can still be reviewed with the macros left off, and your bank's own IT rules always come first.

Should our team move this work to Power Automate or Power Query instead of macros?

Use each where it is strongest, and The Complete Excel Course with AI Integration teaches all three, so the choice is yours to make. VBA works inside the workbook and is quick: the Ninja Challenge of Lesson 185 notes that a macro would usually beat a flow over a long sheet, row by row. Power Automate Desktop, in the AutoFlow lessons, lays its steps out visually and can open files and click through other applications, and its recorder (Lesson 181) captures a routine without code; those lessons need Windows. Power Query suits the clean-up that repeats every month: a folder of tapes combined and cleaned on refresh (Lesson 166), with no code to maintain. A sound split for a credit desk: queries to prepare the tape, a macro to check it and a flow to run the routine around it.

Where does VBA fit in a credit model that is built with formulas?

Around the model: the formulas calculate, and the macro guards what feeds them and tidies what comes out. The Complete Excel Course with AI Integration teaches the modelling with formulas, from SUMIFS and lookups to the budget vs actual model of FinanceGuard built with SORT, UNIQUE, VSTACK, LET and TEXTSPLIT (Lesson 117), and gives VBA the jobs code does best: checking every input row for gaps and non-numbers before a ratio is worked out, writing a flag where a figure fails a rule, and formatting the result consistently. A sensitivity run that loops through rate shocks is not built in the lessons, but its working parts are, the For Next loop and the If test, so a scenario macro is within reach once FormatWizard is done. Keep the logic in formulas a reviewer can read, and let the code do the repetitive guarding.

Can the checks run as one routine that reports a fault instead of crashing halfway down the tape?

Yes: The Complete Excel Course with AI Integration finishes FormatWizard with exactly that routine, and on a loan tape it is the step that makes the checks dependable. Lesson 152 builds RunFullValidation, a master macro that calls the reset, the empty-field checks and the number check one after another, with the screen frozen while it works so a long tape runs quickly. A fault on the way no longer leaves you staring at a half-flagged sheet: On Error GoTo hands control to a handler that puts the screen back and names the problem in plain words. The lesson also catches a trap that would hide findings on a credit file: two checks writing to one flag cell must add to each other after a pipe, or the second wipes out the first. One press then covers every facility, and the flag column reads as a complete exception list for review.

I have never written code: is FormatWizard a realistic first macro for a credit analyst?

Yes, it is built for exactly that starting point. The Complete Excel Course with AI Integration opens the section by recording, not typing: Lesson 137 and Lesson 138 capture your own clicks as macros, and only after that does Lesson 141 open the editor to show the code the recorder wrote. From there each lesson adds one idea, a variable, a function, a loop, an If, a colour, and several routines are pasted in and read line by line before you change them; Lesson 148 even has you draft parts of one in Claude or ChatGPT, then put right what they get wrong. A credit analyst who writes nested IFs and SUMIFS already thinks the way VBA asks, in conditions and ranges, so the logic feels familiar long before the syntax does. Buyers of the plan with instructor support can send a question about their own tape to the instructor and get a written reply.

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.