The Complete Excel Course with AI Integration
Excel macros and VBA for warehouse managers
Every shift leaves a log behind: a pick export with blank picker IDs, missing locations, notes typed where quantities belong and last shift's flags still showing, checked by eye before the morning meeting. The Complete Excel Course with AI Integration turns that sweep into code you write yourself in FormatWizard, an industry-standard automation project. The lessons below run in order, from a first recording through the VBA editor, loops, flags and colours to one master macro.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Record the formatting the morning's WMS export gets by hand and replay it from a Quick Access Toolbar button, with the macro stored where every new export can reach it.
- Make a recorded macro follow the selected row with relative references, so one shortcut marks whichever pick line is short.
- Write a VBA loop that walks the pick log from the first data row to the true last row and writes a flag beside every line with no picker or no location.
- Colour the offending cell through Interior.Color, mixing the shade with RGB, while the flag column says what is wrong, both in one pass.
- Catch entries in the quantity column that are not numbers at all, such as a note or N/A, with IsNumeric, before a units total comes out short.
- Check what a macro reads with Debug.Print in the Immediate window before it writes to the live log, then run every check 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, it is the whole night-log check in miniature: recorded formatting, a last-row finder, flags cleared before each run, blanks written up and coloured, non-numbers caught in a number column and a master macro that reports its own errors. Read zone for region and picker for salesperson and the code fits your log.
-
Project 13
AutoFlow
The weekly report routine, run by a flow instead of by you.
The course's Power Automate project, built round a weekly sales report, and the yardstick for choosing: a flow opens the workbook, reads and writes cells and loops rows without code, while a macro, working from inside, usually gets through a long sheet faster. Knowing both, you give the pick log to VBA and the routine around it to a flow.
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 already sort, filter and format your own logs: FormatWizard opens with a recorded macro, so the first evening needs no code at all. Still building confidence with formulas and tables? Lay that ground from Lesson 1 first, since a check is only as sound as the sheet it reads. Recorded macros before? Move on to Lesson 141 and open the VBA editor, the point where written code takes over.
17 of 186 lessons · 1 h 16 min
14 VBA and macros in Excel: FormatWizard Recording comes first: the idea of a macro and of VBA, a first recording named, given a shortcut and stored, relative references so a recording follows the selected row, the Developer tab with a button on the Quick Access Toolbar, then the .xlsm format that keeps the code. The recordings format sales rows with a negative amount; yours can format the day's WMS export.
- 136 Start here Excel macros and VBA for beginners What macros are, the FormatWizard project 3 min
- 137 Record your first Excel macro Name, run and use absolute references 6 min
- 138 Relative references in Excel macros Make recorded macros dynamic 4 min
- 139 Developer Tab in Excel Run macros from a button and the quick access toolbar 4 min
- 140 Save macros in Excel Macro-enabled workbooks and the XLSM file format 3 min
14 VBA and macros in Excel: FormatWizard Into the code: the VBA editor opened with Alt+F11 and its modules, macro security and Enable Content, a first line that points the code at the Data sheet by name, variables declared under Option Explicit, and GetLastUsedRow, a function returning the true last row, so a check covers a log of any length.
- 141 The VBA Editor in Excel Open it with Alt+F11 and learn the workspace 4 min
- 142 Working in the VBA editor Macro security, trust settings, switching to Excel 6 min
- 143 Your first VBA code Modules, worksheets, rows, columns and formatting 4 min
- 144 VBA variables and data types Sub vs function for Excel beginners 6 min
- 145 VBA functions in Excel Build GetLastUsedRow with find and exit function 5 min
14 VBA and macros in Excel: FormatWizard The check itself: old flags and fills cleared before each run, a For Next loop writing a flag beside every blank region, one loop testing region and salesperson together into a FlagText message, and the empty cells coloured light red through Interior.Color and RGB. With zone and picker in those columns, it is the sweep a night's pick log needs.
- 146 Clear old flags with VBA Reset messages and fill colours with if statements 5 min
- 147 For Next loop in VBA Flag missing region values in Excel 4 min
- 148 VBA If Else and loops Check missing sales data and build a FlagText message 5 min
- 149 Highlight cells with VBA Interior.Color and RGB for missing data 5 min
14 VBA and macros in Excel: FormatWizard Finishing the tool: IsNumeric flagging anything in the unit figure column other than a number, Debug.Print, whose output shows in a window of its own, to see what the code reads before it writes, and RunFullValidation, one subroutine that runs every check with screen updating off and an error handler that says what went wrong.
- 150 IsNumeric in VBA Validate unit price and amount data types in Excel 7 min
- 151 Debugging VBA for beginners Debug.Print and the Immediate window 5 min
- 152 Complete Excel validation macro One VBA subroutine with an error handler 3 min
Instructors
Who teaches it.
Instructor, Excel with AI
Virginia Thorn
Emmy Award winner. Teaches Excel with AI at Coding Liquids.
Questions
Asked before starting.
If the night-log check moved off my desk and into Excel macros and VBA, what would a warehouse manager have to learn to write it?
About 1 hour 16 minutes of lessons, from a first recorded macro to a master check with an error handler, all of it in FormatWizard, the industry-standard automation project of The Complete Excel Course with AI Integration from Coding Liquids, designed after talking with people from many different industries. Your finished macro clears the last run's flags (Lesson 146), loops down to the true last row (Lesson 145), writes a message wherever region or salesperson is blank and colours the cell (Lesson 148, Lesson 149), flags any entry in a number column that holds no number at all (Lesson 150) and runs it all from one master macro (Lesson 152). The lessons check a sales sheet; on your log, zone, picker and quantity take those columns' places. Scan-to-log forms are not taught; the check that makes the night's log fit for the morning is, from the first recorded keystroke to the error handler.
The formatting macro must work on a fresh WMS export every day, not only in the workbook I recorded it in: where should it live?
In your Personal Macro Workbook, one of the storage places The Complete Excel Course with AI Integration shows you in Lesson 137. Recording a macro asks where to keep it: This Workbook ties it to one file, while the Personal Macro Workbook, a hidden file Excel opens with itself, keeps it on hand for any workbook on that computer, the right home for a routine that each new export needs. The same lesson names the macro and gives it a letter shortcut, and Lesson 138 records with relative references, so the steps start from whichever cell you select instead of one fixed row. A tool that lives inside a shared workbook needs saving as a macro-enabled .xlsm, taught in Lesson 140, because an ordinary .xlsx strips every macro out when it is saved.
Ctrl+Z cannot undo a macro: how do I stop a check from damaging the live pick log?
By building it the way The Complete Excel Course with AI Integration does, so it only ever writes where you mean it to. Lesson 137 warns up front that a macro's changes cannot be undone with Ctrl+Z, which is why the FormatWizard check is designed to touch one place: Lesson 146 clears old messages and fills from the flag column alone, the loops of Lesson 147 and Lesson 148 write their findings into that column, and the colour of Lesson 149 lands only on the empty cell it found. Quantities, locations and times are read, never rewritten. Lesson 151 then shows what the code reads in the Immediate window before it writes anything, and the habit to keep is to run each new version on a copy of last night's log first. That way a slip costs a copy, never the record of a shift.
Before the macro writes a single flag on the pick log, can I see which cells it is reading?
Yes: Lesson 151 in The Complete Excel Course with AI Integration teaches exactly that rehearsal. Debug.Print sends a value to the Immediate window, opened with Ctrl+G, instead of to the sheet or a pop-up: first a counter running from one to five, then each row number beside the value in column A, checked against the first rows of the data. Point the same line at your log and you see which rows the loop visits and what it finds in the picker column, before a flag lands in hundreds of rows. It matters doubly for code you did not type yourself: Lesson 148 sets you to draft pieces of its loop in Claude or ChatGPT, each in its own window, then put right what they got wrong, and a Debug.Print run is the quickest way to see whether a drafted loop starts on the right row and reads the right column.
Will the warehouse PCs even let a macro run, and what do the shift leads have to click?
Yes, and The Complete Excel Course with AI Integration shows both sides of it: trusting the file and giving the shift leads a button. Lesson 142 opens a macro workbook the way a shift lead will meet it, behind the yellow bar saying macros have been disabled, and shows Enable Content with the rule that matters on any site: enable it only for files you trust. For the shift leads themselves, Lesson 139 brings the Developer tab onto the ribbon and puts the macro on the Quick Access Toolbar as a button with its own icon, so running the check is one click with no editor in sight. Save the tool as a macro-enabled .xlsm (Lesson 140) and keep it in a folder the team trusts. Where the site's IT team sets macro security centrally, they decide what that yellow bar allows, and you will know exactly what to ask them for.
Supervisors type their own notes into the pick log: will the macro's flags wipe them out?
Your notes stay safe in a column of their own, and The Complete Excel Course with AI Integration shows exactly why they need one. The FormatWizard check owns the Flag column: Lesson 146 clears its contents and fills at the start of every run, so last night's messages never linger, which is why a supervisor's note must never sit there. Beside it, a notes column is read and left alone. Inside the flag column, several findings can still share one cell: Lesson 148 builds one message per row from more than one check, joined with a pipe, and Lesson 152 changes a routine so it adds its message after a pipe instead of overwriting, because a second check that overwrites erases the first. A note for a pick face below its replenishment trigger can join that same cell the same way, written by the same nightly run, so the driver starts the shift with a list to filter.
The check has started flagging the wrong column of the pick log: how do I find out what went wrong?
Start with the column letters, then let the error handler say the rest, and The Complete Excel Course with AI Integration teaches both. The FormatWizard code names its columns by letter, the region in B and the flags in H, and Lesson 149 shows the classic slip, a copied line still pointing at B when it should read C, lighting up the wrong column. A new column in the export shifts every letter after it, so the first thing to check is each column reference against the new layout. Lesson 143 points the code at the sheet by its name, so a renamed tab stops the run at once, and Lesson 152 wraps the whole run in an error handler that turns screen updating back on and shows Err.Description, a plain message saying what went wrong, instead of leaving the macro dead halfway down the log.
Our site already runs Power Automate: is a VBA check still the better tool on a pick log of tens of thousands of rows?
For a check inside one big workbook, usually yes, and The Complete Excel Course with AI Integration teaches both so you can choose. VBA runs inside Excel: the FormatWizard macro walks a sheet of some five thousand rows in one pass, and Lesson 152 turns screen updating off so Excel does not redraw after every flag, which speeds the run. The Power Automate section makes the comparison itself: its final challenge, Lesson 185, loops a couple of hundred rows only, because a desktop flow works through a large sheet one row at a time, and it notes that a VBA macro would usually run faster while a flow shows its logic visually, without code. So the nightly check on a long log suits a macro, and a flow suits the work around the workbook: opening it, writing approvals, starting from a desktop shortcut. The Power Automate lessons need Windows.
Is there a finished macro workbook I can open and pull apart before I write one for our pick log?
Yes: FormatWizard comes as a starter workbook and a completed macro-enabled one, and The Complete Excel Course with AI Integration has you open the code from the very first recording. Lesson 141 opens the VBA editor with Alt+F11 and tours it: the Project Explorer and its modules, the code window holding what the recorder wrote, and the drop-down that moves between macros. Lesson 142 moves a macro into a module of its own and fixes a compile error, and from Lesson 143 every routine is written or pasted in and read line by line, so the finished file holds modules you have watched being built, not a block of code from a forum. Open the complete file beside your own log, change the sheet name and the column letters to match, and the structure of a working check is already in front of you.
Our pick export has gaps where a wave was cancelled: will the macro stop at the first blank row and miss the rest?
It reads past every gap, because the course finds the last row from the bottom up. Lesson 145 in The Complete Excel Course with AI Integration builds GetLastUsedRow, a function that uses Find with a wildcard, searching backwards from the end of the sheet, so it lands on the last cell holding anything, however many empty rows sit above it. A COUNTA test first returns zero for an empty sheet, so the function never searches nothing, and the lesson proves it by adding a row and watching the answer move from the old last row to the new one. The loops of Lesson 147 onward run from row two to that number, and Lesson 146 stops with a message when a sheet holds only headers. Your log can grow every shift and carry blank stretches, and the check still reaches the final scan.
Shift leads fill in the handover sheet by hand: can a macro check it before the morning meeting reads it?
Yes: hand-typed entries are where a warehouse's figures usually go wrong, and The Complete Excel Course with AI Integration gives you the code to check them on your own rules. Nothing typed into the handover sheet, a count adjustment, a missing sign-off, a zone left without a picker, has been through the WMS's checks, so the macro is the first check it meets. FormatWizard's checks are the pattern: a required field left blank (Lesson 147), two fields tested together on one row with both problems written into one message (Lesson 148), and an entry in a number column that holds no number at all, such as N/A or a typed note, flagged and coloured (Lesson 150). Whatever rules your site keeps in people's heads become lines of an If inside the loop, run every night the same way, and by the time the meeting starts the gaps are marked in the flag column.
I have a week of night shifts coming up: could I learn enough on my breaks to run a first check on the log by the end of it?
Yes: the path is short and the first wins come early. All of FormatWizard in The Complete Excel Course with AI Integration is 1 hour 16 minutes, cut into lessons of a few minutes each that fit a break. The first night covers recording: Lesson 137 to Lesson 140 give you a working macro, a button and a saved .xlsm, useful by the next morning. The middle nights take you through the editor and the first code, with variables and the last-row function, and by Lesson 148 a loop is flagging every row with a missing value. The last lessons add the non-number check, Debug.Print and the master macro. Run each lesson on the starter file, then on a copy of your own log. On the plan with instructor support, the instructor writes back about your own log for two months, counted from the day the support starts.
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.
The same course
For another job, skill, goal, level, topic or comparison.
The course for this job
The course for this skill
More skills for this job
- Excel formulas for warehouse managers
- Lookups for warehouse managers
- PivotTables for warehouse managers
- Charts for warehouse managers
- Dashboards for warehouse managers
- Conditional formatting for warehouses
- Data cleaning for warehouse managers
- Data validation for warehouse managers
- Excel tables for warehouse managers
- Text functions for warehouse managers
- Date functions for warehouse managers
- Dynamic arrays for warehouse managers
- Power Query for warehouse managers
- Power Pivot and DAX for warehouses
- Power Automate for warehouses
- Copilot in Excel for warehouse managers
- ChatGPT for warehouse managers
- Claude in Excel for warehouses