The Complete Excel Course with AI Integration

Excel macros and VBA for bookkeepers

For bookkeepers who format the same client report and scan the same bank export line by line every month. The Complete Excel Course with AI Integration turns both jobs into macros on FormatWizard, an industry-standard project, and this page picks out the path in the order you would use it: a recorded macro on a button, a macro-enabled file a client can open, then VBA that checks every transaction, marks what is missing or wrong and reports back.

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 formatting a client's monthly report needs once, then replay it from a keyboard shortcut, a Developer tab button or the Quick Access Toolbar.
  • Choose relative references when recording, so one macro marks whichever transaction row you select instead of the same row every time.
  • Keep a macro where it lasts: in the Personal Macro Workbook, ready whenever Excel opens on your computer, or in a macro-enabled .xlsm file that keeps it when saved.
  • Write a For Next loop that runs down every line of an export and writes a note beside each one with a blank field, such as a missing code or payee.
  • Test each amount with IsNumeric and colour the faulty cell with Interior.Color and RGB, so a word or a note sitting where a figure belongs is caught before anything is posted.
  • Find the last line of any export with a GetLastUsedRow function, so the same check fits a quiet month and a busy one.
  • Watch the code with Debug.Print in the Immediate window, then run every check from one master macro whose error handler explains a fault.
  • Brief ChatGPT or Claude for part of a macro, then read, test and correct what comes back before it touches a client's figures.

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.

    A bookkeeper's pre-posting review turned into code: thousands of sales lines read in a single pass, a note written beside every gap or non-numeric figure, the faulty cells coloured light red, nothing in the figures themselves altered.

  • Project 14

    Agentic AI in Excel

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

    Where the habit of testing an assistant's answer is formed, on formula columns, dashboards and a QA checklist, before the VBA lessons ask you to correct code that ChatGPT or Claude drafted.

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

  • Project 02

    Dunder Michael Paper Company employee database

    The cleaning that comes before any macro runs: stray spaces trimmed, duplicate rows removed and names split by Flash Fill and Text to Columns, the same steps a raw bank export takes, with no code needed.

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 you can enter transactions and write a simple formula: the section opens with a recording and reaches code one small step at a time, so no programming is assumed. New to Excel? Start at Lesson 1 and come back once tables, SUMIFS and the IF function feel familiar. Recording macros already? Jump to Lesson 141, where the VBA editor opens and the code behind a recording becomes something you can read and change.

17 of 186 lessons · 1 h 16 min

14 VBA and macros in Excel: FormatWizard 3 of 17 lessons · 12 min No code yet: what a macro is and the FormatWizard sheet it will check, a first recording named and given a shortcut, the Personal Macro Workbook that keeps a macro ready whenever Excel opens on your computer, then relative references so one keystroke marks whichever row a bookkeeper has selected.
  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
14 VBA and macros in Excel: FormatWizard 4 of 17 lessons · 16 min Macros where the work happens: the Developer tab, a macro button and the Quick Access Toolbar, the macro-enabled .xlsm format a client's file must be saved in, then the VBA editor behind Alt+F11 and the trust settings that decide when a workbook from someone else may run code.
  1. 139 Developer Tab in Excel Run macros from a button and the quick access toolbar 4 min
  2. 140 Save macros in Excel Macro-enabled workbooks and the XLSM file format 3 min
  3. 141 The VBA Editor in Excel Open it with Alt+F11 and learn the workspace 4 min
  4. 142 Working in the VBA editor Macro security, trust settings, switching to Excel 6 min
14 VBA and macros in Excel: FormatWizard 3 of 17 lessons · 14 min The first lines you type: code that names its workbook and worksheet, variables declared under Option Explicit, a Sub that acts and a Function that answers, and GetLastUsedRow, which finds the final line of an export however many transactions the month produced.
  1. 143 Your first VBA code Modules, worksheets, rows, columns and formatting 4 min
  2. 144 VBA variables and data types Sub vs function for Excel beginners 6 min
  3. 145 VBA functions in Excel Build GetLastUsedRow with find and exit function 5 min
14 VBA and macros in Excel: FormatWizard 4 of 17 lessons · 20 min A review written as code: old notes and fills cleared before each run, a For Next loop that writes a note beside every row with a blank region, a second test gathered into one message per row, and the cells at fault coloured light red so the eye goes straight to them. On a cash book the same tests look for a blank account code or payee.
  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
14 VBA and macros in Excel: FormatWizard 3 of 17 lessons · 14 min The finish: IsNumeric catching a per-unit figure that is not a number, Debug.Print and the Immediate window showing what the code reads before it writes, and one master macro that runs every routine in order behind an error handler that says what went wrong.
  1. 150 IsNumeric in VBA Validate unit price and amount data types in Excel 7 min
  2. 151 Debugging VBA for beginners Debug.Print and the Immediate window 5 min
  3. 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.

Excel macros and VBA for bookkeepers: what should a course cover?

Two things, in this order: macros that replay a client report's formatting, then VBA that checks every transaction before it is posted. The Complete Excel Course with AI Integration from Coding Liquids covers both on FormatWizard, an industry-standard project whose design grew out of talking with people from many different industries. First comes a recording you run in one keystroke, put on a button and keep in a macro-enabled file; then code of your own that walks down a sheet of transactions, notes each blank field, catches entries that are not numbers, colours the faulty cells and reports when it has finished, all gathered into one master macro. The 17 lessons on this page take 1 hour 16 minutes, and each is short enough for a coffee break. The practice sheet is sales data, thousands of rows of it; a bank export, a cash book or a purchase ledger listing is checked in exactly the same way.

Which bookkeeping chores can a macro take over?

The ones that repeat without changing, which in bookkeeping is a long list, and The Complete Excel Course with AI Integration teaches the two kinds a macro handles best. The first is formatting: the headings, number styles and highlights a client's monthly report receives every time, recorded once (Lesson 137) and replayed on any row with relative references (Lesson 138). The second is checking: a VBA loop that reads every line of an export and writes a note where a code or name is blank (Lesson 147) or where an amount will not behave as a number (Lesson 150), before anything is posted. Both end up behind one click: the formatting on a toolbar button (Lesson 139), the checks inside one master macro (Lesson 152). Together they take over the scanning and restyling that every client's file asks for at each month end, the part of the job that needs care but no judgement.

Can a macro check a bank or card export before I post it?

Yes: that check is exactly what the VBA half of The Complete Excel Course with AI Integration builds. FormatWizard reads a sheet of thousands of transactions line by line. Lesson 146 wipes the notes and colours of the last run, Lesson 147 writes Region missing beside any line whose region is blank, even when the cell holds only spaces, Lesson 148 adds a second test and joins both results into one note per line, and Lesson 149 colours each empty cell light red. Point those tests at your export's payee, reference and account code columns, and every line that is not fit to post is marked before you start coding it. The cleaning itself, stray spaces, duplicates and split columns, the course does without code, on the employee database from Lesson 22 and in Power Query.

Can one macro tidy every client's monthly report in a single click?

Yes, where the reports share a layout, and The Complete Excel Course with AI Integration shows how to keep that macro one click away in every workbook. You record the formatting once in Lesson 137, naming the macro and giving it a keyboard shortcut, and the same lesson introduces the Personal Macro Workbook, a hidden file that keeps a macro available whenever Excel opens on your computer, so it serves every client's file rather than one. Lesson 138 records with relative references, so the macro works from wherever you start it, and Lesson 139 puts it on the Quick Access Toolbar with an icon of its own. The recorder's limit is shown in Lesson 142: it replays your clicks without testing anything, so a report that varies by client, or a rule such as only negative amounts, calls for the written VBA of the later lessons.

If a macro changes the wrong rows, can I undo it?

Not with Ctrl+Z, and The Complete Excel Course with AI Integration says so in its very first recording lesson, which is why safety runs through everything after it. Lesson 137 warns that a macro cannot be undone and resets its test row with Clear Formats instead; Lesson 138 then shows how absolute and relative references decide which row a recording touches, so you know before you press the shortcut. The VBA you write is careful by design: FormatWizard never edits a figure, it writes notes in a flag column and colours cells, and Lesson 146 clears both before every run, so a bad run is wiped away by the next good one. Lesson 151 adds Debug.Print, which shows the rows the code reads without changing the sheet. For client files one habit completes it: try every new macro on a copy first.

How do I stop account codes being mistyped before a macro ever checks them?

At the point of entry, with a drop-down list, and The Complete Excel Course with AI Integration teaches it before the VBA section begins. Data validation in Lesson 45 turns a column into a list of allowed entries, so an account code is picked rather than typed, and TaskFlow repeats the technique for status and priority lists (Lesson 81), then protects the sheet and locks its cells against accidental edits (Lesson 86). The macro then catches whatever still slips through, a blank code, a missing name or a figure that is really text, and marks it in the flag column (Lesson 148 and Lesson 150). Pop-up entry forms built in VBA are not among the lessons; for a cash book or a coding sheet, a validated list plus a checking macro gives the same protection with far less to build and maintain.

Will my clients be able to open a workbook that holds macros?

Yes, if it is saved the right way and they know the one click it asks for, and The Complete Excel Course with AI Integration teaches both. Lesson 140 shows Excel refusing an ordinary save once code is present and explains why: the standard .xlsx format strips out every macro, so the file goes to the client as a macro-enabled .xlsm. Lesson 142 shows what the client sees on opening it, macros disabled behind a yellow bar with an Enable Content button, and the rule worth passing on: enable content only for files from a sender you trust. VBA runs in desktop Excel on Windows and on Mac, and the course's requirements set no Windows condition on this section, though the lessons are recorded on Windows, where Alt+F11 opens the editor. Excel in a browser does not run VBA, so a client working there sees the notes and colours a macro left, without running it.

Once FormatWizard is finished, what does one run of it do?

It runs three routines in order and tells you when it is done. RunFullValidation, read through in Lesson 152 of The Complete Excel Course with AI Integration, switches screen updating off so the run is quick, clears the old notes and colours, then checks every transaction line for a blank region or salesperson and for a per-unit figure that is not a number, writing each finding into the flag column, after a pipe where a line has more than one problem, and colouring the cell at fault. Screen updating comes back on, a message confirms success, and if anything fails, the error handler shows what went wrong instead of freezing. FormatWizard is an industry-standard project, and the finished macro-enabled workbook comes with the course, so your version can be compared line by line. Change the columns it tests and it becomes your own pre-posting check.

Where do macros fit among the Excel jobs a bookkeeper does every week?

At the end of the routine, after formulas and queries have done their part, and The Complete Excel Course with AI Integration teaches each tool for its own job. A bookkeeper's week in Excel runs from cleaning exports to coding lines, totalling by account and month, matching one list against another and reporting. Totals come from SUMIFS (Lesson 37), matching from XLOOKUP with IFERROR (Lesson 69 and Lesson 70), and an export that returns every month is best cleaned by Power Query, which replays its steps at a refresh (Lesson 153 onwards). Macros take what is left: the same formatting applied to every client report and the same line-by-line review before anything is posted, which FormatWizard turns into one click. Learn them in that order and each tool does the work it is best at, with nothing forced into a macro that a formula does better.

Is VBA still relevant for bookkeeping work?

Yes, and for a reason close to bookkeeping: the work lives in desktop workbooks that travel between clients, accountants and whoever kept the books before you, and some of them carry macros nobody documented. Opening one and knowing what it will do to the figures is a skill in itself, and The Complete Excel Course with AI Integration builds it from Lesson 141, where the VBA editor shows code you recorded yourself, to Lesson 152, where you read a complete routine with an error handler. The second reason is newer: Copilot, ChatGPT and Claude answer a request for an Excel macro with VBA, so the language matters more now that anyone can generate it, because somebody still has to judge the result. Inside the workbook, checking lines and applying the same formatting, VBA does the job with nothing extra to install.

If ChatGPT can write Excel VBA code, why learn it myself?

Because someone has to vouch for a macro before it touches a client's figures, and an assistant cannot. ChatGPT drafts VBA in seconds, and The Complete Excel Course with AI Integration puts that speed to use: Lesson 148 has you hand parts of the flagging routine to ChatGPT or Claude, then repair what they produce. The repair depends on the groundwork the section lays. Option Explicit, from Lesson 144, stops a misspelt variable from silently reading nothing; a function that finds the final row (Lesson 145) tells you whether a draft's loop covers the whole export; IsNumeric (Lesson 150) is how you spot a test that treats text as a figure. The AI section adds a short QA checklist for any assistant's output (Lesson 99). With the language in hand, an AI draft saves you an hour; without it, you are trusting code blind on someone else's books.

Code is new to me: how does a beginner get from recording a macro to writing VBA?

Through the recorder, which writes your first VBA for you. The Complete Excel Course with AI Integration starts with no typing at all: record, name and run a macro (Lesson 137), make it relative (Lesson 138) and save it (Lesson 140). Then Lesson 141 opens the editor on that very recording, so the first code you read is code you made, describing clicks you remember. From there each lesson adds one idea: a line that names a worksheet (Lesson 143), variables and the difference between a Sub and a Function (Lesson 144), an If statement (Lesson 146), a loop (Lesson 147). Every idea lands in the same FormatWizard workbook, so nothing is learnt in a vacuum, and a quiz at the close of the section shows what stuck. On the instructor support plan, the inbox under any lesson takes your question and the instructor answers in writing.

Why not buy a ready-made VBA bookkeeping template instead?

Because a bought macro does what its seller decided, and the day a client's export changes shape, you cannot change it with it. The Complete Excel Course with AI Integration gives you two things no template does: the finished FormatWizard workbook, a real macro-enabled file you keep and adapt, and the skill to adapt it. Each check addresses its column by letter, so aiming it at your payee or reference column is a one-character edit, the kind Lesson 149 makes when the region check is reused for salespeople, and the warning colour is a single RGB value. Because you wrote every routine yourself, from the last-row function to the error handler, you know what each line does to the figures, which matters when the books belong to someone else. A template is a fixed answer; a macro you understand keeps working as your clients and their exports change.

When will the first macro start saving me time on client work?

The first one can be working the same day. In The Complete Excel Course with AI Integration a recorded macro with a shortcut arrives in Lesson 137, a few minutes into the section, and by Lesson 140 it runs on any row you pick, from a button, saved in a file that keeps it: record your own client report's formatting there and the saving starts at the next month end. The written checks take longer, the 1 hour 16 minutes of the whole path plus the time to aim each test at your own columns, and they arrive one short lesson at a time, so you can stop after any of them with something that works. Every lesson stays open with lifetime access for the next routine worth automating, and completing the course earns a Certificate of Completion with a verification link an employer or a client can check.

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.