
Master the fundamentals of Excel VBA by exploring the object hierarchy, including worksheet and range objects, and using variables, if statements, and loops to create dynamic, automated solutions.
Download and use the exercise files to follow along with me as you learn Excel VBA through hands-on practice.
Learn how Visual Basic for Applications unlocks automation in Excel and other Office apps, using objects like worksheets, workbooks, charts, and cell ranges to automate tasks with one button press.
Explore the object structure of Excel, from the application to workbooks, worksheets, and cells, and learn how VBA references these objects to automate content.
Activate the developer tab and open the Visual Basic for Applications window. Learn to reference Excel objects such as application, workbook, worksheets, and range in the VBA environment.
Explore the VBA window in Excel, including the project panel and properties window, open the immediate window via the View tab, and navigate workbook and worksheet objects.
Use the Excel VBA immediate window to reference the application, workbook, and worksheet objects with dot notation, practicing quick one-line code and debugging to select sheets and test values.
Explore the Excel object model to understand properties and methods of key objects like worksheets, ranges, and the application, and learn to navigate with dot notation and the select method.
Reference worksheets by name or index and use the select method to switch between sheets, such as circulation data and sales data, and watch for subscript out of range errors.
Reference a worksheet from the worksheets collection, then access its name property and assign a new name. Use the immediate window with a question mark to view the result.
Use the count property of the worksheets object to determine how many worksheets exist in the workbook. Return a long value representing the number of objects in the worksheets collection.
Add new worksheets in Excel VBA using the add method on the worksheets object, with before arguments to place the sheet left of the active one, referencing sales data worksheet.
Learn to print with VBA by using the print preview and print out methods on the worksheets object, printing all sheets or a specific worksheet such as employee data.
Learn to delete worksheets in VBA using the delete method, selecting by name or index, while handling the runtime error 1004 that occurs if a workbook has no visible worksheets.
Explore the range object in Excel VBA, representing a cell or range of cells, and practice referencing, selecting, copying, and pasting within worksheets using the 04 range object file.
Navigate Excel VBA by selecting a range using the Range object on a specific worksheet, then use select to pick a single cell or A1:B5, illustrating absolute reference concepts.
Learn how to use the value property of the Range object in Excel VBA to set the B-3 cell, including numeric values and string values with quotes.
Learn to copy a range with the range object's copy method and paste it to another location using the worksheet's paste method, including paste special options for advanced pasting.
Explore referencing worksheets with relative and absolute references in Excel VBA, using the active sheet object to access its name, range, and other properties.
Harness the active cell object in Excel VBA to access the selected cell's address and range properties, enabling dynamic, reusable code for single or multiple cells.
Learn to dynamically select a contiguous data block in Excel VBA by using the active cell's current region, enabling automatic range bounds as data grows.
Explore the offset function in Excel and in VBA to reference cells relative to a starting position, moving rows and columns for dynamic tasks and loops.
Open a blank Excel file, open the Visual Basic Editor, and insert a new module to store reusable VBA code in the workbook instead of the immediate window.
Create a sub procedure in a VBA module to automate tasks. Name it with proper case, no spaces, set as public, and call it to run with one button press.
Learn to run a sub procedure in excel vba by automating tasks to create and rename a worksheet and add headers; run via macros or a workbook button.
Learn to add a form control button from the developer tab, delete the sales data worksheet, and assign a VBA sub procedure to automate creating a new worksheet with headers.
Learn to modularize your code by creating small procedures and a run procedure that calls them, enabling reusability and flexible execution in vba and other languages.
Add comments to your VBA code to leave notes for yourself and coworkers; use apostrophes to mark comments, describe procedures, and even selectively disable lines.
Save Excel workbooks with VBA as macro enabled files to preserve your code, using the .xlsm extension and avoiding macro free workbooks.
Learn how variables act as storage locations in VBA, allowing you to store a tax rate value and reuse it by referencing the variable instead of repeatedly using the range.
Declare a variable in VBA using dim, name, and as to allocate storage, then reference a cell value via the range object and prepare for reuse in a public sub.
Explore common variable types in excel vba, declare variables with dim to allocate storage space, and store text, integers (including long) and boolean values for true/false conditions.
Master using the string data type in a variable to store text, then apply it to rename the active sheet or use a range value as the sheet name.
explore how to use the boolean datatype to store true or false values, and apply it to properties like visible and bold in worksheets.
Leverage if logic in VBA to drive conditional formatting by value, using the rgb color function to color code active cells based on ranges under 10000, 10000–20000, and 20000.
Extend an excel vba procedure with else-if and else statements to color cells based on value ranges, such as greater than 20000 or 10000, and run the procedure for formatting.
Learn to use the do while loop in Excel VBA to repeat actions while a cell is not empty, using offset to move through cells and apply color coding.
Learn how the for each loop iterates through a collection of cells in a selection, using a range variable and offset to move to the next cell in Excel VBA.
Add buttons to the message box, capture the user's choice as an integer, where yes returns 6 and no returns 7.
Learn to collect user input in Excel VBA using the input box, store the result in a string variable, and use it to compose messages or update cells.
Celebrate completing the Excel VBA introductory course and reinforce core concepts like worksheets, ranges, application, loops, and variables while encouraging practice and exploring other VBA courses.
Microsoft Excel VBA (Visual Basic for Applications) provides Excel users with the ability to automate any Excel task. Excel Tasks that would normally take an extensive amount of work and time to complete can ultimately be automated and completed in a single click of a button. All that's needed to automate your experience is a little Excel VBA knowledge.
Maybe you've heard of Excel Macros and VBA. Or, maybe you've even attempted to create your own. Jumping into VBA can be a bit daunting and overwhelming. I've been teaching Excel for 15+ years and have had loads of questions from those that have taken the dive into learning Excel VBA. Where should I start? What do I need to know? What's a variable? Enroll in this course and I'll share the knowledge and experience I've gained working with Excel VBA.
WHAT YOU'LL LEARN
EXERCISE FILES AND QA
As you go through the video lectures you can download the exercise files, found within each section. Use the exercise files to practice the concepts you will be learning.
The course contains a QA section where you can interact with me and ask any questions as you develop your VBA skills.
ENROLL NOW
As you participate in this introductory Excel VBA course you will build the knowledge and confidence to automate your experience in Excel, saving you time and money.