The Complete Excel Course with AI Integration
Excel macros and VBA for data entry operators
Every batch gets the same treatment: the same formatting, the same hunt for blanks and stray words, the same notes on what to fix. The Complete Excel Course with AI Integration turns that routine into macros, first recorded, then written in VBA, on FormatWizard, an industry-standard project. This page takes in the whole macro section: relative recording, buttons and the .xlsm format, the VBA editor, a last-row function, loops that flag faults, IsNumeric, debugging and one master check.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Record the formatting you repeat on every batch as a macro, give it a letter shortcut, and choose absolute or relative references so it lands on the right rows.
- Run a macro from a button or the Quick Access Toolbar, keep it in the Personal Macro Workbook or a macro-enabled .xlsm file, and open such files with the trust settings understood.
- Find the last used row of a batch of any length with a VBA function, so every check reaches the final record and stops there.
- Loop through every keyed row and write a flag beside each one with a missing value, gathering several faults into one message per row.
- Colour the cells at fault with Interior.Color and RGB, and flag any entry in a number column that is not a number, such as a word or N/A, with IsNumeric.
- Test what the code reads with Debug.Print before it writes, and gather every check into one macro that clears old flags and reports errors instead of crashing.
- Judge when a chore belongs to a recorded macro, to VBA, to Power Query or to a Power Automate flow.
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 sales sheet thousands of rows long, it becomes the batch check an operator runs before handover: old flags cleared, every row read, missing regions, missing salespeople and per-unit figures that are not numbers flagged in their own column and coloured, all from a master macro.
-
Project 07
TaskFlow
One sheet that shows what is done, what is late and what is urgent.
Built for tasks, it shows the protected entry sheet a macro works best behind: drop-down lists for status and priority fed from their own sheet, locked cells, a protected workbook structure and a test row that proves everything holds.
-
Project 13
AutoFlow
The weekly report routine, run by a flow instead of by you.
Automation from outside the workbook: Power Automate Desktop flows that open Excel, read a sheet, loop through rows and write results back, on Windows, for chores that stretch across files or programs.
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 can format a sheet and write a simple formula: no programming is assumed, and the opening lessons need no code at all. Already recording macros? Open Lesson 141, where the VBA editor begins, and carry on to the checks. New to Excel? Begin at Lesson 1; relative and absolute references (Lesson 10) and IF (Lesson 29) are the two ideas the recorder and your first If statement build on. Want the batch check above all? The checking lessons start at Lesson 146, though Lesson 145 comes first for the last-row function they rely on.
17 of 186 lessons · 1 h 16 min
14 VBA and macros in Excel: FormatWizard The recording half of FormatWizard, where the day's formatting becomes one keystroke: a macro named and given a letter shortcut, absolute recording that always returns to the same row, relative recording that follows the selected cell, the Developer tab, a button and a Quick Access Toolbar icon, and the .xlsm save that keeps it all.
- 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 Behind the recording: the VBA editor opened with Alt+F11, Enable Content and the trust settings, a first line that points code at the Data sheet, variables under Option Explicit, the Sub set against the Function, and GetLastUsedRow, which finds the final row of a batch whatever its 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 checks begin: a routine that clears the last run's flags and fills, a For Next loop that writes Region missing beside every row without one, then one loop testing region and salesperson together and building a single message per row, with Claude or ChatGPT drafting parts that you correct.
- 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
14 VBA and macros in Excel: FormatWizard Finishing the batch check: missing cells coloured with RGB, an IsNumeric test that flags a per-unit figure or an amount that is not a number, Debug.Print and the Immediate window to see what the code reads before it writes, and RunFullValidation, which runs every check in order behind an error handler.
- 149 Highlight cells with VBA Interior.Color and RGB for missing data 5 min
- 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.
Can a data entry operator learn Excel macros and VBA well enough to stop repeating the same steps every day?
Yes. The Complete Excel Course with AI Integration from Coding Liquids takes you from your first recorded macro to a VBA check you wrote yourself, inside FormatWizard, an industry-standard project designed after talking with people from many different industries. The opening lessons need no code: you record the formatting you repeat, run it from a key or a button and save it in a macro-enabled workbook. Then the VBA arrives one idea at a time: a function that finds the last row of any batch, a loop that visits every record, If tests that flag missing values, IsNumeric for words in a number column, coloured cells, debugging and an error handler. By the end, one click checks a whole sheet and writes down what is wrong in each row. The 17 lessons here take 1 hour 16 minutes, with the starter and finished workbooks to compare.
What in my daily keying routine is worth turning into a macro?
Anything you do the same way on every batch, and The Complete Excel Course with AI Integration covers both kinds you will find. Lesson 136 puts the aim plainly: raw, messy data in, a formatted, validated report out. The first kind is formatting: the header style, the column widths, the date and number formats, the highlight on a problem row. Recorded once, it replays exactly (Lesson 137), and with relative references it works on whichever row you select (Lesson 138). The second kind is checking: the look down each column for a blank, a missing name or a word where a figure belongs. That is VBA's territory, and FormatWizard builds it lesson by lesson until one run flags every fault in a column of its own (Lesson 152). The keying itself stays with you, and so do the judgement calls; what goes is the repetition around them. A useful test: if you would explain the steps the same way every time, a macro can do them.
Can a macro move each entry from a form area into the next empty row of my log?
Yes, a macro can, and The Complete Excel Course with AI Integration teaches the parts that decide whether yours is safe, which is where most home-made versions fail. A recording made with absolute references always returns to the cells it first touched, so a recorded copy-and-paste would land on the same row every time and overwrite the record before: Lesson 137 demonstrates that behaviour on a single fixed row. Relative references make a recording follow the selected cell instead (Lesson 138). For code, Lesson 145 builds GetLastUsedRow, a function that finds where the data ends however many records the sheet holds, so the next free row is always the one below it. The transfer routine itself has no lesson of its own; with those pieces, the VBA editor and FormatWizard's loops, it is a short step you can take with confidence, and the finished macro-enabled workbook shows how such code is organised.
Can a macro check every row I keyed for blanks and wrong entries before I hand the file over?
Yes: that is exactly what FormatWizard becomes, and The Complete Excel Course with AI Integration builds it one check at a time. Lesson 146 clears the flags and fill colours of the last run, so each check starts clean. Lesson 147 loops through every row and writes Region missing beside any record without one, using Trim so a cell holding only spaces still counts as empty. Lesson 148 tests region and salesperson in the same pass and gathers both faults into one message, separated by a vertical bar, so a row tells you everything wrong with it at once. Lesson 149 colours the cells at fault, Lesson 150 flags a per-unit figure that is not a number, and Lesson 152 runs the whole set from one macro. The lessons check sales records; swap the column letters for your own required fields and the same routine checks an order, invoice or registration batch.
If someone keys a word where a quantity belongs, will the macro find it?
Yes: The Complete Excel Course with AI Integration teaches IsNumeric for exactly that, in Lesson 150. The macro works down the column of per-unit figures and asks of each entry whether it can be treated as a number; a word, a note such as N/A or a stray character fails the test, and the macro colours both the cell and its flag light red and writes that the entry is invalid. The lesson chooses that wording on purpose: invalid, not missing, because the cell is filled, just with the wrong kind of thing. Numbers stored as text are a separate fault with lessons of their own: COUNT set beside COUNTA exposes them in a column that must be numeric (Lesson 35), Paste Special values and Find and Replace repair a pasted column on the sheet (Lesson 22), and Power Query gives a column its true number type for every future import (Lesson 158). Between them, a typed batch has nowhere left to hide a bad figure.
My batch has a different number of rows every day: will the macro still reach the last one?
Yes, because The Complete Excel Course with AI Integration teaches you to find the last row instead of assuming it. Lesson 145 builds GetLastUsedRow, a function that searches upwards from the bottom of the sheet for the last cell holding anything, guarded so an empty sheet returns zero rather than an error. On the FormatWizard data it reports row 5071; paste in one more record and it reports 5072. Every check that follows, the flag reset, the loops and the IsNumeric test, runs from the second row to whatever that function returns, so a short batch is not padded and a long one is not cut off. Lesson 146 adds the companion guard: if the sheet holds only headers, the macro says so and stops. For an operator whose batches swing from a handful of records to thousands, that is the difference between a macro you trust and one you babysit.
Can the day's formatting be one key press, in whichever workbook I have open?
Yes, and The Complete Excel Course with AI Integration shows the settings that make it so. In Lesson 137 the recorded macro gets a shortcut, which must be a letter, so a number is refused and Ctrl+Q is used instead; Lesson 138 holds Shift for a second macro on Ctrl+Shift+Q. The lesson that records the first macro also explains where to keep one you want everywhere: the Personal Macro Workbook, a hidden file that opens with Excel on your computer, so the macro is ready in every workbook you open. Lesson 139 adds the visual routes, the Developer tab's list of macros and an icon on the Quick Access Toolbar, for colleagues who prefer clicking to remembering keys. Lesson 140 covers the file that carries macros to other people, the .xlsm format, since an ordinary workbook strips them out on saving. The lessons show Windows screens; on a Mac the steps look a little different.
Ctrl+Z will not undo a macro: how do I keep a bad run from damaging the master file?
With habits The Complete Excel Course with AI Integration builds into FormatWizard, starting from the warning in Lesson 137 that Undo cannot reverse what a macro has done. Test on a copy or a freshly saved version before a macro touches the master, and read recorded code before trusting it: Lesson 142 points out that a recorded macro formats its row without checking whether the amount there is negative at all. Lesson 151 teaches the strongest safeguard. Debug.Print writes to the Immediate window, not to the sheet, so you confirm the code is reading the right cells in the right order before it writes a single flag, which stops a mistake spreading over hundreds of rows. FormatWizard's own design helps too: its first routine wipes only the flag column before each run (Lesson 146), and the master macro's error handler reports what went wrong instead of crashing (Lesson 152).
What can VBA do that a recorded macro cannot?
Decide, repeat with sense and report, and The Complete Excel Course with AI Integration teaches all three. A recording replays clicks exactly; it cannot look at a cell and choose, which is why Lesson 142 finds a recorded macro formatting a row whether or not its amount is negative. VBA adds the choice: an If statement acts only when its condition holds (Lesson 146). It adds repetition that knows where to stop: a For Next loop visits every row from the second to the last, however many there are (Lesson 147). And it adds reporting: a message built for each row (Lesson 148), a colour on the faulty cell (Lesson 149), a closing message that says the run finished and an error handler that explains a failure (Lesson 152). For an operator that is the step from a macro that formats to one that checks, and the second saves far more time than the first.
Power Query, Power Automate and AI all automate Excel now: where does VBA still fit for data entry?
Inside the workbook, on the checks and actions only a macro makes, and The Complete Excel Course with AI Integration teaches all four tools so each gets its proper job. Power Query is the answer for files that arrive again and again needing the same clean-up, since its steps replay at a refresh (Lesson 154). Power Automate Desktop drives Excel from outside, opening files, reading sheets and looping through rows, and its section needs Windows (Lesson 174). Copilot, ChatGPT and Claude draft formulas and code, and in Lesson 148 you write parts of the FormatWizard macro with ChatGPT or Claude and correct them, which only works because you can read VBA. What stays with VBA is the one-click action on the sheet in front of you: formatting a batch, flagging the rows that break your rules, colouring them and reporting back. Office Scripts, the browser's own automation, have no lesson in the course; VBA runs in desktop Excel on Windows and Mac alike.
Can I build a proper data entry form with what the course teaches?
You can build a proper entry sheet, which does the same job for most teams, and The Complete Excel Course with AI Integration teaches every part of it. Drop-down lists restrict a column to permitted values (Lesson 45), and TaskFlow links them to lists kept on a sheet of their own, so one change updates every drop-down (Lesson 81). Locked cells and a protected sheet guard everything except the cells meant for input, and protecting the workbook's structure stops sheets being added, renamed or deleted (Lesson 86). An Excel table takes each new record and carries its formulas down (Lesson 19). Then FormatWizard's validation macro checks whatever still gets through, row by row (Lesson 152). VBA UserForms, the pop-up forms in many downloadable templates, have no lesson of their own; an entry sheet built this way is simpler to maintain, and the VBA you learn here is the very language a UserForm runs on.
Our team shares files online: will a macro run in Excel in the browser?
In desktop Excel, yes, on Windows and Mac alike; the browser version opens a file that holds macros without running its code, and The Complete Excel Course with AI Integration teaches the desktop skill. So a FormatWizard-style check is run from the Excel app on your computer, even when the workbook itself lives in shared storage. Everything else about sharing a macro file is taught: the macro-enabled .xlsm format that keeps code and data together (Lesson 140), the yellow bar that asks a colleague to enable content and the trust settings behind it, with the advice to enable content only for files you trust (Lesson 142), and a Quick Access Toolbar icon or button so anyone can run the macro without knowing its name (Lesson 139). Agree with your team which copy of the file is the master, and run the check there before it goes out.
How long before my first macro saves me time, and what if I have never coded?
Your first macro can be saving time after the opening lessons, and no coding is needed to get there. The Complete Excel Course with AI Integration puts the code-free lessons first: by Lesson 140 you have a recorded macro that formats whichever row you select, a key and a button that run it and a workbook that keeps it, ready for tomorrow's batch. The VBA follows in short lessons, each adding one idea to a macro you already understand, with variables and debugging both taught for beginners (Lesson 144, Lesson 151). The whole path takes about 1 hour 16 minutes; typing the code yourself and pointing it at your own sheet takes longer, and that is the part that makes the skill yours. With the instructor support plan, a question asked under any lesson is answered by the instructor in writing. The Certificate of Completion that follows the course carries a verification link an employer can confirm, and FormatWizard gives you a working macro to show beside it.
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
- Formulas for data entry operators
- XLOOKUP and VLOOKUP for data entry
- Pivot tables for data entry operators
- Charts for data entry operators
- Dashboards for data entry operators
- Conditional formatting for data entry
- Data cleaning for data entry operators
- Data validation for data entry operators
- Excel tables for data entry operators
- Text functions for data entry operators
- Date functions for data entry operators
- Dynamic arrays for data entry operators
- Copilot for data entry operators
- ChatGPT for data entry operators