
Explore the fundamentals of Excel VBA, from the basic editor to the object model and properties. Learn to develop macros quickly, trap errors, and apply real-world examples like consolidation.
Discover how to open the VB Editor via the developer tab or the F11 shortcut, and switch between the project, properties, and immediate windows to write and debug modules.
Explore macro recording in Excel VBA, create and name a macro, assign a shortcut key, choose where to store it, and run recorded actions like formatting and cell operations.
Learn how to use relative references in Excel VBA to perform actions at the current selection, such as printing a signature at a chosen location.
Create and name subroutines in Excel VBA using Sub and End Sub, apply macro naming rules, insert code, and display a message box with MsgBox via a shortcut key.
Learn how dot notation connects objects with properties in Excel VBA, using the range object to select ranges, assign values, and adjust properties like size and font.
Learn how to copy and paste a range in Excel VBA using the Range object's copy method, specifying the destination range in another sheet.
Learn how the cells property selects and assigns values on the active sheet using index and column index arguments, including single-argument forms and range references.
Explore how variables in VBA store data in memory, declare and name them, and assign values using equals signs with examples of string and integer variables.
Discover how to use the range.end method in Excel VBA to find the last nonblank cell in a row or column and select cells in directions like down or right.
Explore the if and else if structure in VBA, using conditional logic, logical tests, and nested conditions to drive actions based on range values and operators.
Explore conditional and logical operators in VBA, covering assignment, comparison operators (>, <, >=, <=, =, <>), and not, and, or to evaluate multiple conditions in if-then structures.
Explore the select case structure in Excel VBA, including text expressions, case conditions, ranges, and default actions, and compare its efficiency to nested if statements.
Learn to use the with end with statement to set multiple properties on a Range object with dot notation, reducing repetition and speeding up VBA code.
Explore how to implement a for loop in VBA to repeat if-else logic, declaring an integer index, iterating through values, and applying the loop to compare scores in columns.
Master the for each loop in excel vba to iterate each element in a collection, such as worksheets in the book or cells in a range, using an object variable.
Practice using a for loop in VBA to repeat an if-else if statement from i 1 to 4, applying it to scores in column c and printing results in d.
Demonstrate the do while loop in Excel VBA by declaring and initializing a variable, incrementing it until x reaches 11, and printing 1 to 10 in column B.
Consolidate data from multiple workbooks into a single book using a VBA macro, dynamically handling varying file names and data ranges in Excel.
Explore arrays in Excel VBA by declaring and sizing an array, storing multiple values, and reading by zero-based index, then display results with a message box.
Learn how to use multi-dimensional arrays in Excel VBA, creating two- and three-dimensional arrays, indexing cells, assigning values, and printing results from a 3x4 array.
Create a user form in Excel VBA, add labels and text boxes, and program the click event to save employee name and ID to a worksheet range.
Learn to create a user defined function in Excel to convert kilometers to miles, with an optional decimal places parameter and example usage converting 15 kilometers.
Learn how to handle runtime errors in VBA with On Error GoTo 0, On Error Resume Next, and On Error GoTo label, displaying error messages and guiding program flow.
Explore how to use Excel worksheet functions inside VBA, including lookup and sum, by defining variables and passing arguments to fetch values and total sales.
Visual Basic for Applications (VBA) extends the functionality of ordinary Excel sheets by automating common tasks, customize the interface to your specific needs, and perform complex calculations which don't exist natively in Microsoft Excel. Using this straightforward programming language, you can quickly sort columns and rows, add user controls such as buttons and forms, create reports that update as data changes, and calculate values across multiple worksheets. This course have been crafted to help you develop skill in Excel, so after completing this course, you will be able to leverage your VBA skills in other Office applications, like MS Access and Word.
Upon completing this course you will be prepared to: