The Complete Excel Course with AI Integration

Excel macros and VBA for PMO analysts

Every month the returns arrive from project managers, and before the portfolio pack is built someone has to find the missing ratings, the blank owners and the comments typed where a figure belongs. The Complete Excel Course with AI Integration hands that check to VBA on FormatWizard, an industry-standard project, and this page picks out the lessons that do it, from a first recorded macro to one button that checks a whole return.

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 monthly styling of the portfolio summary once, with relative references where the row changes, and replay it from a button on the Quick Access Toolbar.
  • Keep the PMO's checking tools in a macro-enabled workbook and open returns from project managers with the trust settings and the Enable Content bar handled safely.
  • Write a For Next loop that walks every row of a status return or RAID log, however long it is this month, and names a missing RAG rating, owner or review date in a flag column.
  • Gather every gap in a row into one flag, the messages separated by a pipe, and colour the empty cells with Interior.Color so a project manager sees what to fix.
  • Mark an entry in a forecast or score column that is not a number, such as a comment or N/A, with IsNumeric before the portfolio totals are added.
  • Watch what the code reads in the Immediate window, through Debug.Print, before any flag is written across the register.
  • Run the whole pre-pack check from one subroutine that clears last month's flags, calls each check in order and reports any error instead of stopping without a word.

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 in the course on a sales sheet, it hands a PMO the pattern of a pre-pack check: blanks found and named row by row, gaps coloured, figures that are not numbers marked, old flags cleared, and the whole routine on one button with an error handler. Point its column letters at a return template and it reads yours.

  • Project 07

    TaskFlow

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

    Built for tasks, it shows the front half of a clean return: drop-downs for status and priority, a protected sheet, and colour rules for overdue work that need no code, leaving the macro only the faults that get past them.

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: FormatWizard begins with your first recorded macro and asks for no coding beforehand, only an Excel you move around in comfortably. Already recording macros? Go to Lesson 141, where the code begins. Writing VBA already and after the checks alone? Lesson 146 starts them, and Lesson 151 covers testing and the master routine. New to Excel itself? Begin at Lesson 1, since the checks assume you know how sheets, columns and formulas behave.

17 of 186 lessons · 1 h 16 min

14 VBA and macros in Excel: FormatWizard 5 of 17 lessons · 19 min From a first recording to a one-click button: macros defined and the FormatWizard goal set, one recording that always formats the same row and a second, with relative references, that formats whichever row it starts on, a home for both on the Developer tab and the Quick Access Toolbar, and a save as a macro-enabled workbook so the code survives. The pack's monthly styling is exactly the kind of routine these lessons hand to the recorder.
  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 Into the code: the VBA editor opened with Alt+F11, macro security and Enable Content for files you trust, a first line pointing at a named sheet, variables declared under Option Explicit, why a Sub acts while a Function hands back a result, and a reusable function that finds the last used row, so a check reaches the newest project in the register without an edit.
  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 themselves, written on a sales sheet: the flag column and its fills wiped before each run, a loop that walks the rows and names each missing region, a second test folded into the same pass so a row's faults share one message, gaps painted with Interior.Color and RGB, and IsNumeric marking an entry in a figure column that is not a number. Swap the column letters and the same code reads a status return or a RAID log.
  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 assembly: Debug.Print sends what the code is reading to the Immediate window, a dry run with nothing written to the sheet, and a master subroutine runs every check in order with screen updating off and an error handler that reports what went wrong. On pack day that is one button and one message.
  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.

Excel macros and VBA for PMO analysts: before the portfolio pack goes out, could a macro read every project's return for gaps and style the summary?

Yes, both, and The Complete Excel Course with AI Integration from Coding Liquids teaches them on FormatWizard, an industry-standard project. Before a pack can be built, every return has to be read for a missing RAG rating, a blank owner or a comment typed where a figure belongs, and the summary has to look exactly as it did last month. FormatWizard builds that routine from nothing: a recorded macro on a button (Lesson 137 to Lesson 139), then VBA that loops down every row, writes what is missing beside it, colours the gaps and marks entries that are not numbers (Lesson 147 to Lesson 150), all run from one subroutine with an error handler (Lesson 152). The lessons check a sales sheet; your return template takes its place. Between one round of returns and the next, the 17 lessons here, 1 hour 16 minutes of video, take you from a first recording to a check you trust.

A return with no RAG rating or no named owner throws out the portfolio summary: can VBA find each one before I build the pack?

Yes, every one, in a single pass down the sheet. The Complete Excel Course with AI Integration writes the loop in Lesson 147: a For Next that moves down the rows one at a time and writes a message in a flag column wherever a key cell is empty, with Trim so a cell holding only spaces still counts as blank. Lesson 148 adds a second check to the same pass and joins the messages with a pipe, so a return missing both its rating and its owner carries both notes in one cell, and Lesson 149 colours the empty cells soft red. The lessons look for a missing region and salesperson; point the column letters at RAG and owner and the same code reads your returns. A reusable function finds the last used row first (Lesson 145), so a register that gained projects this month is checked to its final line.

Some project managers type a comment into the forecast spend column instead of a figure: can a macro mark those cells before the portfolio totals are added?

Yes: IsNumeric does it, in Lesson 150 of The Complete Excel Course with AI Integration. The routine reads the forecast column from top to bottom and asks one question of each entry, can this be treated as a number, and wherever the answer is no it paints that cell and its flag light red and records the entry as invalid. TBC, see comments, a pending note or a letter caught inside a figure: each is found before the portfolio's forecast is summed, so the board never sees a total that left a project out. Because the flag says invalid rather than missing, a project manager reading it knows to replace a comment with a figure, not to fill a gap. A number stored as text is another fault with its own cures in the course: the COUNT against COUNTA check (Lesson 34, Lesson 35) and Power Query's data types (Lesson 158).

Which should colour a project's RAG cell on the summary, a formatting rule or the checking macro?

The formatting rule, because a rating's colour has to follow the rating as it changes, and The Complete Excel Course with AI Integration teaches conditional formatting long before any code. A rule reads the cell every time it changes, so a project moved from amber to red turns red at once: Lesson 15 sets up highlight rules, data bars and icon sets, and TaskFlow uses the same tools to mark overdue and completed work and to show progress (Lesson 82, Lesson 84). A macro's colour behaves differently: Lesson 149 paints a cell when the check runs and leaves it there until the next run clears it (Lesson 146), which suits a record of what failed the pre-pack check, not a live rating. Keep the traffic lights in rules and the exceptions in the macro, and the summary shows both the portfolio's health and the gaps still open in its returns.

The portfolio summary gets the same house styling every month: is recording it enough, or does that need code?

Recording is enough for styling, and The Complete Excel Course with AI Integration shows you how to record it so it still works next month. In Lesson 137 the recorder captures a row made bold, italic and highlighted, named and given a shortcut, and replays it in one keystroke; Lesson 138 switches on relative references so the macro styles whichever row you start from rather than the row it was recorded on. A red project that sits on a different row each month is styled by the same key. Lesson 139 puts the macro on the Quick Access Toolbar, and Lesson 140 saves the file as a macro-enabled workbook so the code survives. Code begins where judgement does: the recorder formats whatever row it is given without asking whether that project is red, and deciding which rows qualify is the work of the VBA lessons that follow.

Could each project manager run the same check on their own return before it comes to the PMO?

Yes, from a button, without opening the editor, and The Complete Excel Course with AI Integration covers everything that makes that work. Lesson 139 adds the Developer tab and puts a macro on the Quick Access Toolbar with an icon of its own, so the check is one click. Lesson 140 saves the template as a macro-enabled workbook, because a standard file strips the code out when saved. Lesson 142 explains the yellow bar that disables macros and the trust settings behind it, so you can tell project managers when to press Enable Content and why only on files they trust. The finished routine ends with a message, and if something fails, its error handler reports what went wrong instead of crashing (Lesson 152). Returns then arrive already checked, and the PMO's own run becomes a confirmation rather than a hunt.

Should our return template stop bad entries with drop-downs, or leave them for the macro to find?

Both, at different moments, and The Complete Excel Course with AI Integration teaches each. Drop-down lists stop a bad rating or status as it is typed: Lesson 45 builds them, TaskFlow applies them to status and priority (Lesson 81), and protecting the sheet keeps the template's formulas and headings out of reach (Lesson 86). A list only judges what is typed into it, so a cell left empty passes untouched, and a value pasted over the list can slip in. That is the macro's half: FormatWizard's loop finds the blanks and writes what each row lacks (Lesson 148), and IsNumeric marks a comment pasted into a figure column (Lesson 150). The drop-downs keep most faults out of the returns at the source; the macro proves, row by row, that what reached the PMO is complete before any of it reaches the pack.

The pack that goes to the portfolio board must be a plain workbook with no code: where should the PMO's macros be kept?

In the PMO's own macro-enabled file or in your Personal Macro Workbook, and The Complete Excel Course with AI Integration explains both. Lesson 140 shows what happens to code when a workbook is saved in the standard format: every macro is stripped out, which is exactly what a board copy needs, while the macro-enabled format keeps the code with the data for the PMO's working file. Lesson 137 introduces the Personal Macro Workbook, a hidden file that keeps a macro available whenever Excel opens on your computer, a natural home for a styling macro you run on every month's pack. The routine stays with you, the checked and styled summary goes out as a plain workbook, and the board opens its figures without a yellow security bar asking whether to trust them.

Pack day leaves no time to run checks one by one: can a single macro run them all and say what failed?

Yes: The Complete Excel Course with AI Integration ends FormatWizard with exactly that subroutine in Lesson 152. It clears the old flags first, so last month's messages never mix with this month's (Lesson 146), then calls the blank checks and the number check in order, turns screen updating off so the run stays quick on a long register, and finishes with a message. If anything goes wrong, the error handler restores the screen and shows Excel's own description of the error instead of halting halfway with a broken sheet. Two routines writing to the same flag cell add their messages after a pipe rather than overwrite each other, so a project's row keeps every fault found. Before trusting it with real returns, Lesson 151 prints what the code reads to the Immediate window, proof that it reads the right rows and columns before any flag goes onto the sheet.

ChatGPT offered a macro that opens every project manager's workbook in a folder and copies the returns across: what does the course teach me to judge it?

Enough to read it line by line, and a better tool for the job itself. The Complete Excel Course with AI Integration teaches the parts any such macro is built from: variables declared under Option Explicit (Lesson 144), a For Next loop (Lesson 147), If and Else (Lesson 148), Debug.Print to watch what it reads (Lesson 151) and an error handler (Lesson 152), and in Lesson 148 you have Claude or ChatGPT write parts of a macro and then correct them. Opening workbooks from code, and building slides or emails, are not lessons of the course. For stacking every return in a folder into one table, its answer is Power Query: From Folder combines each file and takes in next month's on refresh (Lesson 166), with no code to maintain. Read the assistant's draft as practice in VBA, and let the query do the consolidating.

Our portfolio data lives in a PPM tool and only its export reaches Excel: is VBA still worth a PMO analyst's effort?

Yes, because the export still lands in Excel, and that is where the checking and styling happen every month. The Complete Excel Course with AI Integration builds FormatWizard, a project designed after talking with people from many different industries, for exactly that last step: a raw sheet in, a validated, flagged and formatted sheet out, on one button. Whatever tool holds the portfolio, its export carries the gaps people left in it, and a macro finds them in one run however many rows arrive (Lesson 152). The course also teaches the tools that sit beside VBA, so each chore gets the right one rather than the only one you know: Power Query for combining and cleaning exports (from Lesson 153), and Power Automate Desktop, on Windows, for routines that run across applications (Lesson 174). Knowing all three makes you the person in the PMO who can say which of them a reporting chore needs.

Can the same check run on the RAID log, where every risk needs an owner, a score and a review date?

Yes, the same loop with new column letters, and The Complete Excel Course with AI Integration gives you every piece of it. The blank checks of Lesson 147 and Lesson 148 catch a risk with no owner or no review date and write what is missing beside it; Lesson 149 colours the empty cells; IsNumeric in Lesson 150 marks a score column holding a word such as high or a question mark instead of a number. Because the last used row is found afresh on each run (Lesson 145), risks added since last month are included without editing the code. Whether a review date has passed is better shown by a live rule than by a macro: TaskFlow flags overdue entries with conditional formatting and counts the working days left to each deadline with NETWORKDAYS and TODAY (Lesson 82, Lesson 85), and a RAID log can borrow both as they stand.

Which lessons must be done before the first check runs on real returns, and how long do they take?

All of FormatWizard, 1 hour 16 minutes across 17 lessons, and a recorded macro is useful long before the end. In The Complete Excel Course with AI Integration, the recorder, the button and the macro-enabled file come first (Lesson 137 to Lesson 140), so the pack's styling can be on a button after a single sitting. The editor, variables and the last-row function follow (Lesson 141 to Lesson 145), then the checks themselves (Lesson 146 to Lesson 150), and Lesson 152 assembles them into one run. The FormatWizard starter file and the completed macro-enabled workbook come with the course, so every line can be compared with a working answer; the lessons show Windows, and a Mac's screens differ only slightly. With the instructor support plan, a question about your own return template goes to the instructor and is answered 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.