The Complete Excel Course with AI Integration

Excel macros and VBA for small business owners

The same jobs come back every week: format the sales sheet, scan the order list for blanks, fix entries typed wrong, and nobody else is there to do them. The Complete Excel Course with AI Integration hands those jobs to macros and VBA on FormatWizard, an industry-standard project, and this page picks out its lessons in build order: recorded macros, the VBA editor, loops that flag missing data, checks on number columns and one master macro.

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 with relative references that formats a refund or negative-amount row the moment you select it, and run it from a button on the Quick Access Toolbar.
  • Save macros with their workbook as an .xlsm file, so the automation travels with your sales sheet instead of vanishing at the next save.
  • Open the VBA editor with Alt+F11, read the code a recording wrote, and decide through Excel's trust settings which files' macros to enable.
  • Write a VBA loop that walks down your order or sales list and flags each row with a missing customer, product or region.
  • Colour problem cells with Interior.Color and RGB, and build one flag message per row with If Else, so two faults on one order both show.
  • Catch a word, an N/A or a stray character typed into a number column with IsNumeric, before it throws out your totals.
  • Find the last row of a list that grows every day with a reusable VBA function, so your checks cover new entries without editing the code.
  • Run every check from one master macro with an error handler, and trace what the code reads with Debug.Print before it writes a single flag.

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 long sales sheet, it is the macro an owner would otherwise pay someone to write: recorded formatting for problem rows, then VBA that clears old flags, marks missing entries and non-numbers in colour and runs every check from a master routine with an error handler, all of it code you can read and change.

  • Project 13

    AutoFlow

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

    Built on a weekly sales workbook, it shows where a routine outgrows a single file: Power Automate Desktop, on Windows, opens, reads, writes and closes Excel and clicks through other apps, the next step once FormatWizard's macros are working inside your own sheets.

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 even if you have never recorded a macro: FormatWizard begins with what a macro is and records one before any code appears, and every lesson after it builds on the one before. New to Excel itself? Begin at Lesson 1, and the Excel tables of Lesson 19 will make the sales data feel familiar. Already recording macros of your own? Go to Lesson 141, where the VBA editor and your first lines of code begin.

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 recording that formats a row with a negative amount, relative references so one shortcut fixes whichever row you select, a Developer tab with a Quick Access Toolbar button, and the .xlsm format that keeps macros saved. A refund row in your own sales sheet is formatted the same way.
  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 From recording to reading code: the VBA editor and its modules, macro security and the Enable Content decision, a first line that points at a worksheet, variables, data types and Option Explicit, and a reusable function that finds the last used row, so a check always reaches the newest entry in a growing list.
  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 checking engine: old flags cleared before each run, a For Next loop that flags missing regions, If Else building one flag message per row for missing regions and salespeople, cells highlighted with Interior.Color and RGB, and IsNumeric flagging a word or a stray character in the per-unit figure column. The lessons check sales data; your order list or stock sheet carries the same kinds of gaps.
  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 the finished tool: Debug.Print and the Immediate window to see what the code reads before it writes, then RunFullValidation, one master macro with an error handler that runs every check in order and reports a fault instead of crashing.
  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.

Hiring an Excel consultant or learning Excel macros and VBA myself: which suits a small business owner?

Learning them yourself, for the routines that come round every week, and The Complete Excel Course with AI Integration from Coding Liquids makes that practical from the very first recording. Its FormatWizard project, an industry-standard tool designed after talking with people from many different industries, takes a sales sheet from recorded formatting macros to VBA that flags missing entries, colours bad values and runs every check from one master macro. The 17 lessons on this page, 1 hour 16 minutes in all, build it step by step from a starter file, with the finished workbook to compare against. A macro you wrote is one you can read, fix and extend the day your sheet gains a column, with no invoice to pay and no wait for someone else. Outside help can still suit a large one-off system; the everyday checks of a small business are well within your own reach.

Which parts of my week could a macro take over?

The repetitive formatting and checking, and The Complete Excel Course with AI Integration teaches both on a working sales sheet. Recorded macros format a problem row in one keystroke: the lessons pick out rows with a negative amount, the way a refund sits in your own sales list (Lesson 137, Lesson 138). VBA then does the scan you now do by eye: it clears last week's flags (Lesson 146), walks every row and flags a missing region or salesperson (Lesson 147, Lesson 148), colours the gaps (Lesson 149) and flags any entry in a number column that is not a number (Lesson 150). Lesson 152 then runs the lot in one go. Producing invoices or saving PDFs is not among the lessons; checking the sales and order lists those invoices come from is, and that is the check that slips first in a busy week.

Do I have to write code, or can I record what I already do?

You start by recording, and The Complete Excel Course with AI Integration stays with recording until it runs out. Lesson 137 records a first macro while you format a row, names it, gives it a Ctrl shortcut and runs it again; Lesson 138 switches on relative references so the same macro works on whichever row you select. Lesson 139 adds the Developer tab and a toolbar button, and Lesson 140 saves the workbook as .xlsm. Only then does Lesson 141 open the VBA editor, where the steps you recorded appear as code you can read. Writing code starts in Lesson 143 with a single line, because a recording can only repeat what you did, while a check that tests every row for a blank needs a loop you write. Each step leads into the next, so nobody meets a wall of code at the start.

If ChatGPT writes me a macro to check my order sheet, will I be able to tell whether it works?

Yes, and that judgement is exactly what The Complete Excel Course with AI Integration builds. In Lesson 148 learners write parts of a two-check macro with Claude or ChatGPT, each in its own window, and then correct what comes back, because generated code needs a reader who knows what each line does. The lessons around it supply that reader's tools: Option Explicit refuses a variable that was never declared (Lesson 144), Debug.Print and the Immediate window show which cells the code reads before it writes a flag (Lesson 151), and the error handler of Lesson 152 reports a fault instead of stopping halfway. Try generated code on a copy of the sheet first, since Ctrl+Z cannot undo a macro, a point Lesson 137 makes early. An AI can draft the code in seconds; after these lessons you decide whether it touches your real orders.

What is replacing Excel macros, and is VBA still worth an owner's time?

VBA is still the language that automates the inside of a desktop workbook, and The Complete Excel Course with AI Integration teaches it alongside the tools people expect to replace it. Macros run in the Excel on your own computer, inside the file itself, with no other software involved, which suits the formatting and checking of a sales sheet. For a routine that reaches beyond one workbook, such as opening several files or clicking through a website, the course adds Power Automate Desktop on Windows in its AutoFlow project (Lesson 174). AI changes how code gets written rather than whether it is needed: Copilot, ChatGPT and Claude are taught on real tasks, and Lesson 148 puts AI to work on the macro itself. Knowing VBA lets you use every one of them with judgement, because you can read whatever any of them hands back.

Is it safe to open a workbook with macros that a supplier or a helper sends me?

Excel hands you that decision, and The Complete Excel Course with AI Integration teaches how to make it. When a workbook holding code opens, Excel disables its macros and shows a yellow bar with Enable Content; Lesson 142 works through that bar and the macro security and trust settings behind it, with one rule: enable content only for files you trust. The lessons also show where the code lives, in modules inside the VBA editor (Lesson 141), so before trusting a file you can open the editor and see what its macros would do. For an owner who swaps files with suppliers, a bookkeeper or part-time staff, that habit matters as much as writing macros: a macro of your own is code you know, and anything else is read first and enabled second.

My sales list grows every day: will a macro still reach the newest rows?

Yes, because the macro finds the end of the list for itself. In The Complete Excel Course with AI Integration, Lesson 145 builds GetLastUsedRow, a VBA function that searches upwards from the bottom of the sheet for the last filled cell, with COUNTA as a guard against an empty sheet. Run on the FormatWizard data, it reports the last used row, then reports one row further once a new row is pasted in, with no change to the code. Every check after it loops from the first data row down to that last row (Lesson 147), so today's orders are checked along with last month's. The function is written once and called from every later macro, which is why the lessons build it as a function rather than a fixed range. A list that doubles in size needs nothing edited.

Can a macro catch a word or an N/A typed where a number belongs?

Yes: Lesson 150 in The Complete Excel Course with AI Integration builds exactly that check with IsNumeric. The macro walks down a number column, the per-unit figure in the lesson, and wherever an entry is not a number, whether a word, a note such as N/A or a stray character, it colours the cell light red, colours the flag cell beside it and writes that the entry is invalid. For an owner, that is the column a helper fills in by hand: a quantity typed as a word, a note left where a figure should be. Caught by the macro, it is fixed before SUMIFS or a PivotTable reads the column and returns a total that is quietly wrong. Numbers stored as text are a separate fault, handled by the COUNT against COUNTA check (Lesson 35) and by Power Query's data types (Lesson 158).

Can I give a part-time helper a button that runs the checks?

Yes, and The Complete Excel Course with AI Integration builds the button. Lesson 139 switches on the Developer tab and adds a macro to the Quick Access Toolbar with an icon of its own, so running it is one click for anyone at the computer, and Lesson 136 makes the point that a macro runs the same way every time, for you or a colleague. The helper never needs the VBA editor: they press the button and read the flags. Point that button at the master macro of Lesson 152, which runs every check in order and ends with a message, and the weekly check becomes a job anyone in the business can do exactly as you would. Save the file as .xlsm (Lesson 140) and the macros travel inside the workbook, wherever it is opened.

What happens if a macro hits a problem halfway through my sheet?

It tells you what went wrong instead of crashing, because The Complete Excel Course with AI Integration builds that safety net into the finished tool. RunFullValidation, completed in Lesson 152, opens with On Error GoTo, so any fault jumps to a handler that switches screen updating back on and shows the error's description in a message. The same lesson makes the checks add their flags after a separator rather than overwrite each other, so two faults found on one row both survive. Before that, Lesson 151 uses Debug.Print and the Immediate window to show which rows and values the code reads, a check made before any flag is written. One habit protects the real file as well: run a new macro on a spare copy of your sales sheet until its flags look right, then on the original.

I run the business from a Mac: can I follow the macro lessons on it?

Yes, the whole of FormatWizard: The Complete Excel Course with AI Integration names Windows only for its Power Pivot and Power Automate sections, so recording, the VBA editor and every check in this path are open to Excel on a Mac. Expect one difference on screen. The lessons are filmed in Windows Excel, and Lesson 139 notes that the Developer tab steps look a little different on a Mac, where a quick search turns up the Mac version. Where a lesson presses Alt+F11, a Windows shortcut, the Visual Basic button on the Developer tab opens the same editor (Lesson 141). Loops, IsNumeric, RGB colours and the error handler are the same VBA on both machines, so nothing has to be relearnt if a helper of yours works on Windows. AutoFlow, the Power Automate project after FormatWizard, is the point where a Windows PC becomes necessary.

How soon could a macro be doing my weekly check of the orders?

Within 1 hour 16 minutes of lessons, and the first useful macro arrives much sooner. The Complete Excel Course with AI Integration has you recording one in Lesson 137, near the very start of FormatWizard, and by Lesson 140 it sits on a toolbar button in a saved .xlsm file: from that point a formatting job in your own sheet can be one click. The loops that flag missing entries arrive by Lesson 148, and the master macro with its error handler closes the run in Lesson 152. The FormatWizard starter file and the finished .xlsm come with the course, so each step can be compared with working code before you adapt it to your orders. Lifetime access keeps the lessons on hand whenever the sheet changes shape, and the Certificate of Completion records the skill once the course is done.

Will my macros still be there when I reopen the file next week?

Yes: an .xlsm workbook keeps every macro inside it, and The Complete Excel Course with AI Integration shows why that matters. Lesson 140 tries an ordinary save first and meets Excel's warning, because a standard .xlsx file strips out every macro; Save As with the Excel Macro-Enabled Workbook type, .xlsm, keeps the VBA code inside the file alongside your data. Lesson 137 also points to the Personal Macro Workbook, a hidden file that keeps a macro ready whenever Excel opens on that computer, handy for a formatting macro used across several workbooks. Later lessons organise the code into modules in the VBA editor (Lesson 142), each macro in its own place, so the tool you built stays readable when you come back to it months later to add a new check.

An order can be missing a customer and a product at once: will the macro report both?

Yes, in one flag cell, because The Complete Excel Course with AI Integration builds the flag message to hold several faults. Lesson 148 gives each row a FlagText string that starts empty, adds a message for a missing region and then another for a missing salesperson, separated by a pipe, and writes the result beside the row; emptying the string for every new row stops one row's faults carrying into the next. Lesson 149 adds a second layer, the missing cells themselves coloured a soft red with Interior.Color and RGB, so the eye goes straight to the gap. In your order list the same pattern flags a missing customer name and a missing product code on one line, and the master macro of Lesson 152 appends later checks instead of erasing earlier ones.

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.