
Record your first macro and explore the editing environment, security, relative references, variables, breakpoints, the immediate window, the Excel object model, and loops with conditional logic for user input.
Explore how to navigate the Udemy video player, adjust playback speed and volume, access subtitles, view course resources, use notes and Q&A, and track updates and certificates.
Enable the developer tab, then record your first macro with a name and storage option (personal macro workbook or current workbook), stop recording, and play back to color a cell.
Explore the Visual Basic editor in Excel for Mac, view and edit macros in modules, and use alt-F11 to switch between code, sheets, and the immediate window.
Discover how to start and trigger VBA macros in Excel for Mac, using shortcuts and on-sheet buttons, and write a Hello World subroutine that displays a message box.
Learn how to save a macro-enabled spreadsheet in Excel for Mac, choosing between xlsm and xlsb formats, and why xlsx loses macros.
Open and manage Excel workbooks with macros safely, choose to disable or enable macros, and save versions using date-based Japanese formats with archived backups.
Create a new Excel workbook, add a button to count numbers using a number variable, display it in a message box, and learn how to declare the variable with dim.
Explore scope in VBA macros for Excel, showing how module-level and subroutine-level variables control persistence, and how to implement global variables across multiple modules.
Explore how breakpoints pause code, inspect variables, and use the immediate window and watches to debug in VBA macros for Excel.
Explore how string operators work in VBA, using the ampersand for concatenation, distinguish strings from numbers, and learn why literals in quotes improve readability.
Learn how to declare and rename variables in vba for excel, choosing between string and various numeric types (boolean, byte, integer, long, double) to prevent overflow and improve readability.
Avoid typos by enabling option explicit and explicitly defining variables with dim or global, organize code in modules, export and reuse them, and test across sheets.
Excel uses object-oriented concepts to model apps, workbooks, sheets, and cells as interconnected objects. Navigate from the world to cell 1,1 using dot notation and intellisense.
Explore the Excel object model with the Visual Basic editor, navigate the object browser, and understand how application, active workbook, active sheet, and cell relate through properties, methods, and objects.
Explore how default objects and default properties guide Excel VBA, from application to active workbook and active sheet, down to cell values and range properties.
Learn to build a basic adding machine in Excel with a for next loop in VBA. Sum the first column's ten cells and show the result in a message box.
Master nested for-next loops to traverse a grid from A1 to F10, sum values across rows and columns, and debug with debug.print and the immediate window.
learn to use a vba input box to gather rows and columns for an excel macro, replacing hardcoded values with dynamic user input and a for-next loop.
Use isNumeric in VBA to test cell values and guard against type mismatches inside an if...then...end if block. VBA differs from Excel, which uses isNumber for numeric checks.
Learn to use VBA macros in Excel for Mac to build robust if...else...end if logic, handling numeric, blank, and non-numeric cells with debug.print for clear output.
Explore how the VBA val function converts cell contents to numbers, handling strings like 25 A and 20 5A2 and returning zero for non-numeric values.
Explore the do loop until in Excel macros and compare it with the for-next loop, including exit conditions and do events to avoid infinite loops.
Learn to implement a do while loop in Excel VBA that iterates rows and columns until an empty cell is encountered. It extends ranges and sums values when data changes.
Explore vba looping in Excel for Mac, comparing do loop until, do loop while, and exit strategies, and learn testing at the beginning versus the end.
Learn to use the selection object in Excel VBA to access cell values, rows, and columns. Count highlighted cells for summing.
Practice building a new VBA macro button that sums values in the current selection using for-next loops, type-safe doubles, and selection-based range logic.
Learn how VBA uses set to create object references in Excel, distinguishing it from let value assignments, and reference active workbook, sheets, and cells with dot value and dot formula.
Use a for each loop to sum values in a selection, iterating through selection.cells and adding each cell.value to a running total (dbl count) for an accurate total.
Celebrate completing the course by reviewing your first macro, strings and number variables, and the Excel object model, then apply loops and if statements to automate your Excel programs.
Complete the course and download your Udemy certificate; explore related Microsoft Office and Excel courses on IDoData.com, including pivot tables, Power Query, and Power Pivot.
Review of the Windows version:
"This is a very good starting point in VBA. But doing this course one realize how extensive and huge VBA is. As always the teacher is great and one feels his in depth knowledge" -- Daniel Sandberg
Welcome to Excel VBA - An Introduction for the Mac. This course delves into the Visual Basic which allows you to automate Microsoft Excel (and other MS Office products).
Please note: This course is not affiliated with, endorsed by, or sponsored by Microsoft.
Microsoft Excel is an extremely powerful tool – and yet most people only scratch the surface of what it can do. In addition to PivotTables, VLookup formulas and the like, you can also automate it. You can add buttons and forms to add interactive features – yet most people don’t even know it’s there. Maybe you have someone in your organization who is an absolute wizard, getting the computer to do things and walking away while it does it. Do you want to be able to do that? Welcome to wizard school – or in other words, Visual Basic for Applications (VBA).
In this course, I’ll assume that you have some fair knowledge of Excel – able to do basic formulas and colour cells and the like – but you don’t need any prior knowledge of VBA or any programming language for that matter. Of course, the more you already have, the better. I’ll take things nice and slowly. Each video will center around one new aspect, or we’ll consolidate what you already know with coding exercises.
Once you have finished the course, then you will be well on your way to developing your own macros to solve your own problems. And you’ll be able to take your new-found knowledge for use in Word and PowerPoint as well