The Complete Excel Course with AI Integration

Excel macros and VBA for logistics coordinators

Every shift starts with the same scan of the shipment log for blank carriers, missing references and weights nobody can total. The Complete Excel Course with AI Integration teaches a logistics coordinator to hand that scan to Excel macros and VBA on FormatWizard, an industry-standard project, and this page picks out its lessons in the order the work grows: recorded macros, buttons and safe files, then loops, flags, colours, number checks and a 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 that formats a carrier export the same way every morning, with absolute or relative references, and run it from a shortcut key or a Quick Access Toolbar button.
  • Save the shipment log as a macro-enabled .xlsm workbook and open macro files safely, enabling content only for files you trust.
  • Read recorded code in the VBA editor and write your own subroutines with declared variables, plus a function that finds the last row of a log that grows daily.
  • Loop down every shipment row with For Next and If Else, writing a note into a flag column for a missing carrier, reference or delivery date, several notes to a row.
  • Colour each faulty cell with Interior.Color and RGB, and mark any weight or pallet count that is not a number with IsNumeric.
  • Check what code reads with Debug.Print and the Immediate window, then run the whole audit from one master macro with an error handler.

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 some five thousand rows with a flag column, it hands a coordinator the full routine a shipment log needs: last run's notes cleared, every row tested, gaps and entries that are not numbers noted and coloured, and a master macro with an error handler running it all.

  • Project 13

    AutoFlow

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

    Built on a sales workbook, its desktop flows open, read, write and close Excel and loop down rows from outside the file, the partner to a macro once a chore reaches past one workbook. 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 you are comfortable with Excel tables and formulas: FormatWizard begins with recording and needs no coding experience. New to Excel? Begin at Lesson 1, or at Lesson 19 if the basics are familiar but tables are not. Already recording macros? Go straight to Lesson 141 and the VBA editor, where the code behind your recordings opens up.

17 of 186 lessons · 1 h 16 min

14 VBA and macros in Excel: FormatWizard 3 of 17 lessons · 12 min Macros explained, and the recorder that writes them: a FormatWizard tour of the sheet and its flag column, a first macro recorded with absolute references and a shortcut key, then a second with relative references that works from whichever row is selected. Morning formatting on a carrier export is the first chore it takes.
  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 Putting macros within reach and keeping them safe: the Developer tab and a Quick Access Toolbar button, files saved as macro-enabled .xlsm, a map of the VBA editor opened with Alt+F11, and macro security, with content enabled only for files you trust. This is how a macro passes to the next shift.
  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 First code of your own: a module aimed at the data sheet, variables declared under Option Explicit, a Sub that acts set against a Function that hands back a result, and GetLastUsedRow, which finds the end of a sheet that grows every day, as any live shipment log does.
  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 The checking loop: old flags and fills cleared before each run, a For Next pass down every row that notes each blank region, an If Else check that builds one message per row from two tests, and RGB colours that make each gap stand out. Swap in carrier, reference and delivery columns and it audits a load list.
  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 touches that make a macro trustworthy: IsNumeric marking entries in a number column that are not numbers, Debug.Print output in the Immediate window to see what code reads before it writes, and one master macro that runs every check under an error handler.
  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.

Where do Excel macros and VBA fit into a logistics coordinator's day, and which course has me build them into a tool of my own?

In the chores that repeat every shift, checking and formatting above all, and The Complete Excel Course with AI Integration from Coding Liquids has you write those macros yourself on FormatWizard, an industry-standard project designed after talking with people from many different industries. You start by recording (Lesson 137), so a routine done once by hand replays from one key, then move into the VBA editor and write code that finds the last row of a growing sheet, clears old flags, loops down every row to note what is missing, colours the faulty cells and runs as one master macro with an error handler (Lesson 152). The sheet in the lessons holds some five thousand sales rows; a shipment log with carrier, reference and weight columns is checked the same way. Across 17 lessons, 1 hour 16 minutes in all, you go from a first recording to code you understand line by line.

Can the macro recorder learn the tidy-up I give every carrier file by hand, without my touching code?

Yes, the recorder writes the code while you work, and The Complete Excel Course with AI Integration starts there. In Lesson 137 you click Record Macro, give the macro a name and a shortcut letter, store it in the workbook, format a row and stop recording; after that a single keystroke replays every step. A recording made this way is absolute, landing on the same cells each time, which suits the parts of an export that never move, such as its header row. Two cautions come with it, and the lesson gives both: undo cannot reverse what a macro did, so test it before trusting it, and a shortcut must be a letter. Save the file as a macro-enabled workbook in Lesson 140, since an ordinary .xlsx strips the macros out when saved. The morning formatting then takes one key.

The late load I need to mark sits on a different row every day: can a recorded macro follow it?

Yes, with relative references, which The Complete Excel Course with AI Integration teaches in Lesson 138. Turn on Use Relative References before you record, and Excel notes your moves from the starting cell instead of fixed addresses, so the macro formats whichever row you are on when you press its keys. The lesson records it with a Shift shortcut, runs it on the first problem row and then proves it on a second row further down, which is the real test. For a dispatcher that means one keystroke on each late or held load as the eye moves down the log. The absolute version from Lesson 137 stays useful for the fixed parts of a sheet, and once both exist, Lesson 139 puts them a click away on the ribbon or the Quick Access Toolbar.

Can the dispatcher on the next shift run my macro from a button without ever opening the code?

Yes, and The Complete Excel Course with AI Integration shows several ways to put a macro within reach. Lesson 139 switches on the Developer tab and adds the macro to the Quick Access Toolbar with an icon of its own, so a colleague clicks once and never sees the code; a keyboard shortcut works as well. Lesson 137 points to the Personal Macro Workbook, which keeps a macro ready whenever Excel opens on that computer. Lesson 140 saves the log as a macro-enabled .xlsm, the format that keeps the code with the data. When the file opens on another desk, Excel shows a bar asking to enable content, and Lesson 142 gives the rule to pass on: enable it only for files you trust. The lessons are recorded on Windows; on a Mac the same screens look slightly different.

The shipment log gains rows every day: will the check still reach tomorrow's last load?

Yes, because the code finds the end of the data for itself, and The Complete Excel Course with AI Integration builds that piece in Lesson 145. GetLastUsedRow, a function of your own, uses Find to search upwards from the bottom of the sheet for the last cell holding anything, after a COUNTA test that returns zero for an empty sheet. Run on the lesson's data it reports row 5071; paste one more row and it reports 5072, with no code touched. Lesson 144 sets up the variables it needs, with Option Explicit forcing each one to be declared so a typo cannot slip through, and Lesson 146 makes the function Public so every later macro can call it. For a log that grows all week, each loop then runs from the first load to the latest one, whatever the day.

Will last week's red cells and notes still be on the log when this week's check runs?

A clean slate every run: The Complete Excel Course with AI Integration writes the macro that wipes them in Lesson 146. It finds the last row, stops with a warning if the sheet holds only headers, clears every note from the flag column and removes the fill colour from the same range, so each check starts fresh and an old flag is never mistaken for a new one. The rest of the routine then repaints only what is wrong today: Lesson 147 loops down every row and notes a blank region, using Trim so a cell holding only spaces still counts as empty, and Lesson 149 colours each gap a soft warning red with Interior.Color and RGB. On a shipment log the same steps clear Monday's notes before Tuesday's run, so the red you see is always this morning's.

One load is missing both its carrier and its POD reference: can the row show both problems at once?

Yes, side by side in one cell, and The Complete Excel Course with AI Integration builds exactly that in Lesson 148. The loop checks two columns on every row and adds a message for each gap to a text variable, FlagText, joined with a pipe; the variable is emptied at the start of each row so one row's messages never spill into the next. In the lesson one row ends up with both notes, another with only the region, a third with only the salesperson. Lesson 152 carries the idea into the finished macro: when a later routine writes to the same flag column, it is changed to append after a pipe instead of overwriting, because two checks writing to one cell must add, or the second erases the first. For a coordinator that means a single column that reads like a to-do list: carrier missing, reference missing.

A driver typed 'approx 400' in the weight column and the freight total came out short: can the macro find that cell?

Yes, and The Complete Excel Course with AI Integration teaches the check in Lesson 150. IsNumeric asks whether a value can be treated as a number, and the macro runs it down a number column row by row: where the answer is no, it colours the cell and its flag light red and writes a note that the entry is invalid. A word, a note such as N/A or TBC, or a stray character typed beside the figure is caught that way, and those are exactly the entries a SUM skips, which is why the total came out short. The lesson runs it on the per-unit figure of its sales sheet; point it at weights, pallet counts or freight charges and it guards a shipment log the same way. The note reads invalid rather than missing, so a blank and a bad entry stay apart in the flag column.

Every carrier sends its own file to one folder: can VBA stack them all into one tracker?

One tracker from the whole folder is taught in The Complete Excel Course with AI Integration, built with Power Query rather than a loop of code, the course's own tool for that job. Lesson 166 points Get Data at a folder, combines every file in it into one table with a column naming the file each row came from, and picks up a new file dropped in the folder at the next refresh; a clean-up set on a sample file applies to every file. Once the loads are stacked, the macros of this page take over the checking: the loop flags the gaps, IsNumeric catches the bad weights and the master macro runs it all in one go. Each tool does what it is best at, and both sit in the same course, so the folder query feeds the sheet and the macro audits it.

If Claude or ChatGPT drafts the macro, what do I need to know to fix what it gets wrong?

Enough to read every line, and The Complete Excel Course with AI Integration builds that reading habit lesson by lesson. In Lesson 148 learners write parts of the flagging macro with Claude or ChatGPT in its own window and then correct them, so the AI's draft is checked against code you already understand. The editor lessons supply the means: Lesson 141 maps the modules and the code window, Lesson 144 adds Option Explicit so a misspelt variable stops the code instead of failing quietly, and compile errors are met and fixed along the way, a missing End With in Lesson 142 and a missing Dim in Lesson 150. Above all, Lesson 151 prints what the code reads to the Immediate window before it writes a single flag, so a draft aimed at the wrong column is caught before it marks a thousand loads.

A free logistics macro from a forum does almost what I need: can I adapt it safely?

Adapting it safely is exactly what The Complete Excel Course with AI Integration prepares you for, because several of its lessons work on pasted code. Lesson 145 pastes a ready-made function and reads it line by line before running it, and Lesson 146 does the same with a clean-up routine, so taking someone else's code apart becomes routine. Before it touches the live log, three habits from the lessons protect you: open macro files only when you trust their source (Lesson 142), print what the code reads with Debug.Print before it writes anything (Lesson 151), and remember that undo cannot take back a macro's changes (Lesson 137), so try it on a copy first. Change the sheet name, the column letters and the messages to fit your log, and the borrowed code becomes code you can maintain.

What happens if the macro hits something unexpected halfway down the log?

It stops cleanly and tells you why, because The Complete Excel Course with AI Integration ends the section with an error handler in Lesson 152. RunFullValidation, the master macro, opens with On Error GoTo ErrHandler, turns screen updating off so the run is quicker, then calls the clean-up, the missing-value checks and the number check in order. If any of them fails, the handler switches screen updating back on and shows the error's own description in a message, instead of the macro crashing part way through. The lesson then fixes a real compile error, a misspelt call, so you see a fault and its cure side by side. Lesson 151 adds Debug.Print and the Immediate window for the quieter faults, the ones that run without an error but read the wrong cells. Together they make a macro a colleague can run without you standing by.

Flows and AI now automate Excel too: what does VBA still do best on a logistics desk?

Fast checking inside the workbook itself, and The Complete Excel Course with AI Integration teaches VBA beside flows and AI so each job goes to the right tool. A macro is saved with the log as .xlsm and runs at speed over thousands of rows: the Power Automate challenge in Lesson 185 stops its loop at row 200 for the demonstration, because a flow takes time over 1,200 rows one by one, and notes that a VBA macro would usually run faster. Desktop flows, built in AutoFlow from Lesson 174, earn their place when a routine runs across files, apps and the browser; those lessons need Windows. AI tools draft code, and Lesson 148 has you correct what Claude or ChatGPT writes. Exporting manifests to PDF or emailing them from code is not taught; the checking, flagging and formatting that fill a coordinator's mornings are, in full.

I have never written code: how soon could a check of my own shipment log be running?

About 1 hour 16 minutes of lessons in The Complete Excel Course with AI Integration, and the first useful macro arrives early. Recording needs no code at all, so by Lesson 139 a formatting routine of yours can sit on a toolbar button. The VBA lessons then build the check one piece at a time, each small enough to follow: the last-row function, the clean-up, the loop that flags a blank column, the two-check flag text, the colouring, the number test and finally the master macro in Lesson 152. FormatWizard comes with a starter workbook and the finished .xlsm, so every step can be compared with a working answer, and pointing the code at carrier, reference and weight columns is the main change your own log needs. With lifetime access, the lessons stay at hand for the next check you decide to write.

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.