The Complete Excel Course with AI Integration

Excel macros and VBA for construction managers

The same jobs come round on a construction manager's laptop every week: colour the cost lines that went over, check a returned snag list for blank trades and locations, find the quantities typed as TBC. The Complete Excel Course with AI Integration hands those routines to macros and VBA on FormatWizard, an industry-standard project, and the lessons below run from the first recording to a macro that audits a whole log and reports its own errors.

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 cost line showing a negative figure, then a relative version that formats whichever row of the register you start from, each on a shortcut key of its own.
  • Run your macros from a button on the Developer tab or the Quick Access Toolbar, and save the workbook as .xlsm so the code travels with the log.
  • Open the VBA editor, read the code the recorder wrote, and handle macro security and trust settings when a workbook arrives from outside the team.
  • Write VBA with Option Explicit, declared variables and a function that finds the last used row, so a check covers every line of a log however long it grows.
  • Loop through every row of a snag or RFI log with For Next and If Else, writing a message such as Trade missing into a flag column and colouring the blank cell with RGB.
  • Flag an entry in a quantity or rate column that is not a number, such as TBC, a note or a stray character, with IsNumeric, and test what the code reads with Debug.Print first.
  • Join every check into one master macro with an error handler that reports what went wrong, run from a single button before a register goes into the monthly report.

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.

    Built on a long sheet of sales records, it is the course's macro project: recorded formatting first, then VBA that clears old flags, marks missing entries and non-numbers in a Flag column and calls every routine from a master macro. Read region and salesperson as trade and location, and the same code audits a snag list or a subcontractor's return.

  • Project 07

    TaskFlow

    One sheet that shows what is done, what is late and what is urgent.

    Built for tasks, the course's tracker with status drop-downs, overdue highlighting and a protected sheet is the shape of an RFI or snag log, and the log a validation macro then checks when a copy comes back from site with gaps in it.

  • Project 13

    AutoFlow

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

    The course's Power Automate Desktop project, built round a weekly sales workbook: the route for the steps a macro does not take inside one file, such as opening the workbook, asking for a Yes or No and writing the answer back. Its lessons need Excel for 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 use Excel every day and keep your logs as tables: FormatWizard opens with what a macro is and records one before any code appears. New to Excel? Begin at Lesson 1, since the macro lessons expect you to format cells and move round a sheet with ease. Recorded macros already familiar? Go to Lesson 143, where your own VBA starts with a worksheet variable, then declared types and the last-row function.

17 of 186 lessons · 1 h 16 min

14 VBA and macros in Excel: FormatWizard 3 of 17 lessons · 12 min A macro and the VBA behind it explained, then a first recording: a row with a negative amount formatted bold, italic and highlighted on a shortcut key, and the same macro recorded with relative references so it works on whichever row is selected, the cost line or snag you are standing on.
  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 2 of 17 lessons · 7 min The Developer tab, a macro on a button in the Quick Access Toolbar, and the save as a macro-enabled workbook in the .xlsm format, which keeps the code with the register instead of stripping it out at the first save.
  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
14 VBA and macros in Excel: FormatWizard 2 of 17 lessons · 10 min The VBA editor and its parts, opened with Alt+F11, then macro security, trust settings and Enable Content, the decision you face whenever a workbook with code in it arrives from a subcontractor or a consultant.
  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
14 VBA and macros in Excel: FormatWizard 3 of 17 lessons · 14 min Your own code begins: a variable that points at the right worksheet, Option Explicit against typing slips, a Sub that acts set beside a Function that answers, and GetLastUsedRow, which finds the true end of a log that grows by the day.
  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 engine: old flags and fills cleared before each run, a loop that walks the rows with For Next and marks each blank in one column, an If Else check of two columns that builds one message per row, and light red highlighting so the gaps in a snag list or site return show at a glance.
  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 IsNumeric to flag a figure column holding words or notes, the Immediate window, where Debug.Print shows what the code reads before it writes, and one master routine that runs every check on the whole sheet and reports any fault through its 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.

Excel macros and VBA for construction managers: is recording enough for registers and snag lists, or does it pay to learn the code?

It pays to learn both, because recording handles the formatting and only code does the checking, and The Complete Excel Course with AI Integration from Coding Liquids teaches them in that order on FormatWizard, an industry-standard project designed after talking with people from many different industries. You start by recording: a macro that formats a row with a negative amount, then a relative one that works on any row (Lesson 137, Lesson 138), run from a button and saved as .xlsm. Then you write VBA that walks down every row of a sheet, writes a message where an entry is missing, colours the cell and flags figures that are not numbers, all called from one master macro with an error handler (Lesson 152). The data is a long sheet of sales records; on a project the same code checks a snag list, an RFI log or a subcontractor's return. The 17 lessons picked out here run 1 hour 16 minutes from the first recording to that master macro.

What can the macro recorder alone do for a cost report or a snag list?

Plenty of the formatting, with no code typed at all. In Lesson 137 of The Complete Excel Course with AI Integration you record a macro that makes a row with a negative amount bold, italic and highlighted, give it a shortcut key and play it back. That first recording always lands on the same row, so Lesson 138 records it again with relative references, and it then formats whichever row you start from: press the keys on each overrun cost line or each urgent snag and it is marked the same way every time. Lesson 139 puts the macro on a button in the Quick Access Toolbar, and Lesson 140 saves the file as .xlsm so the macro stays in it. The recorder has one limit the course points out plainly: it repeats your clicks without checking anything, which is exactly what the VBA lessons add.

Can VBA find the rows of a long snag list where the trade or the location was left blank?

Yes, every one of them, in a single run. The Complete Excel Course with AI Integration builds that check in Lesson 147: a For Next loop moves down the sheet row by row, and an If test asks whether the region cell is empty once its spaces are trimmed, so a cell holding only spaces counts as blank too. Each empty one gets the words Region missing in the flag column. Lesson 148 checks two columns in the same pass and builds one message per row, so a row missing both entries says both, separated by a pipe. Lesson 149 then colours each blank cell light red with RGB. Swap region and salesperson for trade and location and you have the check a snag list needs before the walk-round: every gap named in words and lit in colour, ready to send back to whoever raised it.

What does a macro do with a quantity column that holds TBC or a note instead of a number?

It flags the entry and colours it, so nothing typed in words slips into a total. Lesson 150 of The Complete Excel Course with AI Integration uses IsNumeric, which asks whether a value can be treated as a number, on the column of per-unit figures: where the answer is no, because the cell holds a word, a note such as N/A or a stray character, the macro colours the cell and the flag light red and writes a message saying the entry is invalid. On a project the same test runs down a column of measured quantities, rates or hours, and the TBC typed in on site is found before it reaches a valuation. Numbers stored as text are a separate fault, which the course finds with the COUNT against COUNTA check of Lesson 35 and fixes in its cleaning lessons, while this macro keeps watch for the words.

Why does the course have me clear the old flags before every check?

Because last week's flags would otherwise sit beside this week's and nobody could tell which problems are still open. In Lesson 146 of The Complete Excel Course with AI Integration the clean-up macro empties the messages in the flag column and removes the fill colours from the same range before any check runs, and it first confirms the sheet holds more than a header row, stopping with a warning if it does not. On an RFI log that means each run starts from a clean column: what shows afterwards is what is wrong today. The lesson also makes the last-row function public, so every later module can call it instead of repeating it. When Lesson 152 joins the routines into one master macro, the clean-up is the first thing it calls, so you can never forget it on a busy Friday.

My log grows every day: how does the code know where the last row is?

It finds it each time it runs, with a function you write in The Complete Excel Course with AI Integration. Lesson 145 builds GetLastUsedRow: it uses Find to search upwards from the bottom of the sheet for the last cell with anything in it, and returns that row number. A guard with COUNTA handles an empty sheet by returning zero instead of failing. The lesson proves it on the project data, where the answer is the last line of the sheet, then adds one more row and runs it again to watch the answer move with it. Lesson 144 sets the groundwork first: a Sub that does a job and a Function that hands back an answer. On a site log the effect is that no check stops short at the row where you last remembered to extend it, and Lesson 152 switches screen updating off while it works, so a long log is checked quickly.

A macro cannot be undone with Ctrl+Z: how does the course keep a live register safe while I learn?

By building the safety into the code and the habits around it. The Complete Excel Course with AI Integration says it early (Lesson 137): what a macro changes, Ctrl+Z will not bring back, so you learn on the FormatWizard files and practise on a copy of your own register before the real one. Lesson 151 teaches Debug.Print and the Immediate window, which show what the code is reading, row number by row number, while the sheet itself stays untouched; you check the first rows there before a loop is allowed to write anything. Lesson 152 adds an error handler, so a fault produces a message that says what went wrong and puts screen updating back on, rather than leaving a half-run macro behind. The clean-up macro means a run can always be repeated from a clean flag column, so a mistake costs a rerun, not a rebuilt log.

Once the register is saved with macros in it, what does a subcontractor see when they open it?

A security warning across the top of the sheet, with the macros held back until they are allowed, and The Complete Excel Course with AI Integration walks through that moment in Lesson 142: the bar that says macros have been disabled, the Enable Content button and the trust settings behind them. The advice there is the right rule for a project team: enable content only for files you trust, which means a subcontractor should know the workbook comes from you. The file itself must be saved as .xlsm (Lesson 140); a plain .xlsx strips every macro out at the save, which is how many shared logs lose their code. For a macro you want on every workbook you open, rather than inside one register, Lesson 137 points to the Personal Macro Workbook, which keeps it ready on your own computer. Send the subcontractor a copy without the macros if they only need the data, and keep the checking on your side.

If ChatGPT hands me a macro for our snag log, what do I need to know before I let it run on the real thing?

Enough to read it, test it and correct it, which is exactly the point The Complete Excel Course with AI Integration builds you up to. In Lesson 148 learners write parts of the flagging macro with Claude or ChatGPT in its own window and then correct what comes back, so you see first hand where such code goes wrong. Reading it relies on the editor (Lesson 141) and on Option Explicit (Lesson 144), which refuses any variable that was never declared and so catches the slips a pasted macro can carry. Debug.Print (Lesson 151) shows which cells the code actually visits before it writes a flag. An AI tool knows nothing about how your log is laid out unless you tell it, so the column letters and the row the data starts on are yours to check. Code you can read is code you can trust on a live register.

With Power Automate and AI tools about, will macros I write now still earn their keep on site?

Yes: inside a workbook, VBA is still the direct way to check and format thousands of rows in one press, and The Complete Excel Course with AI Integration teaches it alongside the newer tools rather than against them. FormatWizard covers the macro side completely, from recording to an error-handled master macro. AutoFlow, from Lesson 174, teaches Power Automate Desktop for the steps around a workbook, opening files, asking a question and writing back, and those lessons need Excel for Windows. The course's own comparison in Lesson 185 is useful when choosing: a macro usually runs faster over many rows, and a flow shows its logic visually without code. AI belongs in both, as a helper that drafts and explains, with the checking left to you. Knowing all three, you pick the right tool for each routine instead of forcing every job into one.

Code is new to me, but I can read a programme of works: will VBA make sense?

Yes, because reading a macro is much like reading a programme: steps in order, each one depending on what came before. The Complete Excel Course with AI Integration starts small, with a single line in Lesson 143 that points a variable at the right worksheet, and explains it as a nickname for something long to write. Then each idea gets a picture you can hold on to: the row counter in a loop is a finger moving down a list (Lesson 147), and the message built for each row is a basket emptied before the next one (Lesson 148). Much of the code is pasted in and read line by line before it is run, never typed from memory, and the finished workbook comes with the course to compare against. If you can follow the logic of which activity must finish before the next starts, you can follow an If, a loop and a call to another routine.

Which checks will the finished macro run, and how do they map onto an RFI log?

One press runs the clean-up and every check, and each has an obvious place on an RFI log. The master macro of The Complete Excel Course with AI Integration (Lesson 152) first clears the old flags and fills (Lesson 146), then runs the two-column check that names every missing entry (Lesson 148) and colours it (Lesson 149), then the number check on a figure column (Lesson 150), with the messages appended after a pipe so one check never wipes out another. Read for an RFI log: the cleared column means only current problems show, the missing-entry check catches an RFI with no package or no owner, and the number check catches a cost or days estimate typed as words. The error handler reports anything unexpected instead of stopping halfway. One button, and the log is ready to go into the monthly report with every gap marked.

Online I see whole construction management systems built in Excel VBA: will this course get me there?

It gives you the core that every such system rests on, built by your own hand. The Complete Excel Course with AI Integration teaches recorded macros, buttons, macro-enabled files, the VBA editor, variables, functions, loops, If Else logic, cell colouring, data type checks, debugging and an error-handled master routine, all on FormatWizard. Those are the parts that check, mark and tidy a register, which is most of the daily value in a construction workbook. A packaged system adds input forms and screens on top, and those forms are not taught here, but once you can read and write the routines underneath, a bought or inherited system stops being a black box: you can see what it does, fix it when it breaks and add the check your project needs. A small macro you fully understand often serves a project better than a large one nobody on the team can open up.

How soon will I have something from these lessons working on site?

Within the first few lessons, and the full checking macro by the end of 1 hour 16 minutes. The Complete Excel Course with AI Integration gets you a recorded, relative macro on a button by Lesson 139, which is ready the same evening to format the overrun lines of a cost report or the urgent rows of a snag list. The editor, security and your first lines of code follow, then the loop that flags blanks by Lesson 147, which on its own is worth running over a returned log. The number check and the master macro with its error handler complete the set at Lesson 152. The starter and complete FormatWizard workbooks come with the course, so each stage can be held against a finished answer. Lifetime access keeps the lessons to hand when the next job brings a new log, and completing the course earns a Certificate of Completion.

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.