The Complete Excel Course with AI Integration

Excel macros and VBA for MIS analysts

Every MIS report gets the same treatment before it goes out: formatting by hand and a scan for blank fields and figures that are not numbers. The Complete Excel Course with AI Integration hands both to Excel macros and VBA, through FormatWizard, an industry-standard project, and this page follows its lessons in the order the skill builds: recorded macros on a button, the VBA editor, loops that flag faults, testing, and one master check 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 the formatting a report gets every morning as a macro, with absolute or relative references, then put it on a Quick Access Toolbar button.
  • Save report workbooks as macro-enabled .xlsm files, and keep a macro used on every fresh export in the Personal Macro Workbook.
  • Read and edit VBA in the editor: modules, worksheet references, variables declared under Option Explicit, and how a Sub differs from a Function.
  • Loop through every row of a daily export with For Next, however long it runs, and flag blank branch or owner fields with a message in a flag column.
  • Colour faulty cells through Interior.Color and an RGB mix, and use IsNumeric to flag non-numbers in the figure columns, so problems stand out before any total is taken.
  • Test code by printing to the Immediate window with Debug.Print before any flag is written, then run every check from one master routine, guarded by an error handler, with screen updating switched off.
  • Decide which step of the reporting routine belongs to VBA, and which to Power Query or a desktop flow in Power Automate.

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.

    The course's macro and VBA build, made on a sales sheet past five thousand rows, and an MIS analyst's pre-send routine in full: recorded formatting on a button, then VBA that clears old flags, marks blank regions and salespeople, tests the figures and reports any failure instead of crashing.

  • Project 12

    SalesFusion

    A sales report that refreshes itself from a folder of files.

    The course's Power Query and data model build on sales files, and the share of the routine VBA no longer needs to carry: exports cleaned, typed and combined by recorded steps, so the macro checks a table that is already tidy.

  • Project 13

    AutoFlow

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

    Built around a weekly sales report, its desktop flows do the steps outside the workbook that a macro does not: opening the file, reading and writing rows, asking for an approval and starting from a shortcut. The lessons note that a macro usually runs faster, while a flow shows its logic visually.

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 formulas and tables are part of your working day: FormatWizard opens with a recorded macro and reaches written VBA soon after, so no coding is assumed. Excel itself new to you? Lesson 1 is the place to begin, returning here once SUMIFS and Excel tables feel routine. Recording macros already, with buttons to run them? Lesson 141 is your door in: the editor opens there and the code begins.

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 with a name and a shortcut, relative references so one keystroke formats whichever row is selected, the Developer tab and a Quick Access Toolbar button, and the .xlsm format that keeps macros when the report is saved.
  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 Inside the code: the VBA editor opened with Alt+F11, the security bar and trust settings, a first line that points the code at its worksheet, variables and data types under Option Explicit, and a reusable function, GetLastUsedRow, that returns where the data ends however long the sheet.
  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 an MIS report needs: old flags and fills cleared before each run, a For Next loop marking every row whose region is missing, one loop that tests two fields and builds a message per row, light red highlighting with RGB, and IsNumeric to flag any money cell holding a word or a stray character.
  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 Safe to run on the real report: Debug.Print, with its output in the Immediate window, to prove the code reads the right cells before it writes anything, then one master macro that runs every check in order, with screen updating off for speed and an error handler that reports a failure instead of stopping halfway.
  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.

What does an MIS analyst gain from Excel macros and VBA, and which course builds a real report check instead of toy examples?

A report that formats and checks itself before it leaves your desk. The Complete Excel Course with AI Integration from Coding Liquids builds that report check in FormatWizard, an industry-standard project designed after talking with people from many different industries, which works on a sales sheet past five thousand rows with the faults a system export carries: blank regions, missing salespeople and non-numeric entries. You begin by recording macros and putting them on a toolbar button (Lesson 137 to Lesson 139), then write VBA that loops through every row, writes a reason into a flag column and colours each problem cell, and finish with one master macro that runs every check behind an error handler (Lesson 152). The 17 lessons take 1 hour 16 minutes, with a starter workbook to build in and the completed .xlsm to check your work against, so the method moves straight onto your own daily export.

My report routine runs export, clean, refresh, check, format and send: which of those steps belongs to VBA?

The check and the format, and The Complete Excel Course with AI Integration teaches the tools for most of the others as well. Cleaning and combining exports is Power Query's work, saved once as steps that run again on every new file (Lesson 157, Lesson 166), which is why people say newer tools have replaced macros for data preparation. Refreshing is the Refresh All button (Lesson 65). Checking every row and applying house formatting inside the workbook is where VBA is unmatched, and FormatWizard builds both, from a recorded macro (Lesson 137) to a full validation routine (Lesson 152). The steps around the workbook, opening it, reading rows and writing results back, suit Power Automate Desktop flows, which AutoFlow builds on Windows (Lesson 176). Sending the finished file stays your own click, since no lesson mails a report, but by then every repeatable step before it is automated.

The morning routine is the same string of clicks every day: how much of it can the macro recorder capture?

Every click you make on the sheet, replayed with one keystroke, and The Complete Excel Course with AI Integration shows exactly where recording ends and code begins. Lesson 137 records a first macro that makes a row bold, italic and highlighted, names it, gives it a Ctrl shortcut and stores it in the workbook. Recorded that way, the macro always returns to the same row, so Lesson 138 switches on Use Relative References and records again: now it formats whichever row it starts from, and one keystroke fixes each problem row of the day's export. Lesson 139 adds the Developer tab and gives the macro a Quick Access Toolbar button. What a recording cannot do is decide: Lesson 142 reads the recorded code and points out that it formats a row without checking whether its amount really is negative. Decisions of that kind need an If statement, which is where written VBA takes over.

Each day's export arrives as a new workbook: where should my macros live so they work on every one?

In two places, and The Complete Excel Course with AI Integration teaches both. Lesson 137 shows the choice the recorder offers: store a macro in this workbook, or in the Personal Macro Workbook, a hidden file that keeps the macro available whenever Excel opens on your computer. A formatting macro recorded with relative references belongs there, ready for each fresh export the moment it opens. The validation code of the later lessons names the workbook that holds it and its Data sheet (Lesson 143), so it lives in your report file, and the day's rows go into that file's sheet. The report file must be saved as a macro-enabled .xlsm, because a standard .xlsx strips every macro out on saving (Lesson 140), and anyone who opens it meets the yellow bar that Lesson 142 explains: Enable Content, for files you trust.

Rows arrive without a branch or an owner and the report breaks: can VBA find every one in a single pass?

Yes: a loop through every row is the heart of FormatWizard. In The Complete Excel Course with AI Integration, Lesson 147 sets a For Next loop moving down the sheet a row at a time, writing Region missing into the flag column wherever the region cell is empty, using Trim so a cell holding only spaces counts as empty too. Lesson 148 adds the salesperson check to the same loop and collects each row's message in a string variable that is emptied before every row, its parts joined with a pipe, so a row missing both shows both reasons. Lesson 149 then colours the empty cells a soft warning red through Interior.Color and an RGB mix, a second layer beside the text. The loop ends at the true last row, however long today's export is, because Lesson 145 builds GetLastUsedRow to find it. Put your branch code and owner columns where Region and Salesperson stand, and the method is yours.

Some branches type N/A or a note where an amount belongs: can a macro catch those before the totals go wrong?

Yes: Lesson 150 builds exactly that check with VBA's IsNumeric. In The Complete Excel Course with AI Integration, the macro walks every row of the per-unit figure column, asks whether each entry can be treated as a number, and where it cannot, a word, an N/A or a stray character, it colours the cell and its flag light red and writes that the entry is invalid; the lesson's title names the amount column too. It is the right test for figures someone typed, because SUM quietly skips a word in a number column and the total comes out short with no warning. Numbers stored as text are a different fault with cures of their own in the course: COUNT set beside COUNTA exposes them (Lesson 35), and Power Query's data types convert them for good (Lesson 158). Option Explicit, in force throughout, is what caught the undeclared variable that stopped the lesson's first run.

The export runs to thousands of rows and the report is due within the hour: will the macro be quick and safe enough?

Yes, because Lesson 152 of The Complete Excel Course with AI Integration builds the master macro for exactly that pressure. RunFullValidation calls the clean-up, the two-field check and the number check in order, with screen updating switched off while it works, which speeds the run, and switched back on at the end. If anything fails, On Error GoTo sends the macro to its error handler, which restores screen updating and shows the error's description instead of crashing halfway with the sheet frozen. The routines share one flag column, so the lesson makes the number check add its message after a pipe rather than overwrite the earlier one. Before any check runs, Lesson 146 clears yesterday's flags and fills, so only today's faults show. The sheet in these lessons runs past five thousand rows, the size of a busy daily export, and all of it is checked with one press of a button.

A macro cannot be undone with Ctrl+Z: how do I test one, mine or an AI's draft, before it touches the live report?

With the habits The Complete Excel Course with AI Integration builds into FormatWizard from the start. Lesson 137 warns early that Ctrl+Z cannot reverse a macro, so the lessons reset the sheet with Clear Formats and test again. Lesson 151 adds the real safety net: Debug.Print writes to the Immediate window, opened with Ctrl+G, and nothing to the sheet, so you confirm that the code reads the right cells in the right order on the first few rows before a single flag is written across hundreds. Option Explicit refuses an undeclared variable, catching a typing slip before it runs (Lesson 144). The same discipline covers code an AI wrote: in Lesson 148 learners have Claude or ChatGPT draft pieces of the macro, then correct what comes back, so you learn to read a draft line by line. Work on a copy, press Enable Content only on files you trust (Lesson 142), and the live report never meets untested code.

The MIS workbook I took over runs on someone else's macros: will the course let me read and change that code safely?

Yes: The Complete Excel Course with AI Integration teaches VBA from the editor outwards, which is the order you need when the code is not yours. Lesson 141 maps the editor: the Project Explorer and its modules, the code window, the drop-down that switches between macros, the sheet objects and ThisWorkbook, all opened with Alt+F11. Lesson 142 covers trust settings and the compile error a missing line causes, and Lesson 143 to Lesson 145 explain what any module is made of: worksheets set into variables, Dim and the data types, then how a Sub that acts differs from a Function that hands back a result. Loops, If blocks and colouring follow, so most of an inherited reporting macro becomes readable line by line. Debug.Print then shows what a routine reads before you change it (Lesson 151), and an error handler of the kind Lesson 152 writes keeps a failure halfway from leaving the sheet in a mess.

Can I write my own VBA functions for the rules my reports repeat, or only macros?

Both, and The Complete Excel Course with AI Integration shows the difference early. Lesson 144 sets out the two kinds of procedure: a Sub performs an action and returns nothing, while a Function hands a result back to the code that called it. Lesson 145 then builds a real one, GetLastUsedRow, which searches upwards from the bottom of the sheet with Find, guards against an empty sheet with COUNTA, and returns the last used row: 5071 on the lesson's data, then 5072 once a row is added. Lesson 146 makes it Public, so every module in the workbook can call it, and the later checks do. That is the pattern an MIS analyst wants for any rule the checks repeat, written once and called wherever it is needed. The functions in these lessons serve macros, while worksheet formulas keep doing the cell-level work, from IF and IFS to SUMIFS.

My checks will grow as management adds rules: how does the course keep the code organised enough for someone else to follow?

By building FormatWizard the way a maintained reporting tool should be built. In The Complete Excel Course with AI Integration each job sits in a module of its own: the reset in one, the two-field check in another, the number check in a third, moved and inserted from the editor's Project Explorer (Lesson 142). Macros get names without spaces and a capital for each word (Lesson 137), comments start with a single quote, and Option Explicit forces every variable to be declared (Lesson 144). Shared logic lives in one Public function rather than being copied (Lesson 146), and Lesson 152 joins the modules under one master routine that calls each check in turn. A new rule from management then becomes one more small routine and one more line in the master macro, and whoever covers your desk can read the whole check from the top.

How far into the path before a macro checks my own daily report, and will it run on a Mac?

Your first useful macro arrives at Lesson 137, and the full check by the end of the 17 lessons, 1 hour 16 minutes in all. In The Complete Excel Course with AI Integration, Lesson 137 to Lesson 140 give you recorded formatting on a button in a saved .xlsm, enough to take one chore off tomorrow's report. The written check grows lesson by lesson from Lesson 143, and Lesson 152 joins it into one routine you can point at your own columns. The FormatWizard starter workbook and the complete .xlsm come with the course, so each step can be held against a working answer. Macros and VBA are not among the tools the course's requirements tie to Windows; the lessons are recorded on Windows, Alt+F11 is a Windows shortcut, and Lesson 139 notes that on a Mac the screens look slightly different. With the instructor support plan, a question about your own report's code goes to the instructor in writing.

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.