Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CourseHorse

Excel Programming with VBA (Live Online)

via CourseHorse

Overview

Master the Visual Basic for Applications programming language along with the essential Excel object model to build powerful VBA automation scripts. Throughout this course, you'll write custom procedures and functions utilizing VBA syntax and Excel object references. You'll leverage the PivotTable object to develop interactive macros that extend the capabilities of standard pivot tables. Additionally, you'll explore critical debugging strategies and comprehensive error handling approaches.

Required Prerequisites:

Intermediate to advanced proficiency with Microsoft Excel; familiarity with PivotTable functionality is beneficial but not mandatory.

Module 1: Getting Started with VBA

  • Introducing the Visual Basic for Applications language and concepts
  • Enabling the Developer Tab within the Ribbon interface
  • Recording and saving Macro-enabled workbooks
  • Executing macros from the interface
  • Opening and modifying macros in the Visual Basic Editor
  • Navigating the development environment and editor features
  • Accessing Visual Basic Help resources
  • Closing the Visual Basic Editor properly
  • Understanding and managing macro security settings

Module 2: Working with Procedures and Functions

  • Understanding the role of modules in code organization
  • Creating standard modules for your code
  • Distinguishing between procedures and functions
  • Building and executing sub procedures
  • Calling and invoking procedures from other code
  • Using the Immediate Window for testing procedure calls
  • Creating Function procedures that return values
  • Following naming conventions and best practices
  • Utilizing Code Editor features and shortcuts

Module 3: Working with Excel Objects and Hierarchy

  • Grasping the concept of objects in VBA
  • Navigating the hierarchical structure of Excel objects
  • Working with collections and object groupings
  • Leveraging the Object Browser for exploration
  • Accessing and modifying object properties
  • Using the With statement for efficient code
  • Calling object methods and invoking actions
  • Creating event procedures triggered by user actions

Module 4: Using Expressions, Variables, and Built-in Functions

  • Understanding expressions, statements, and their evaluation
  • Declaring and using variables in your code
  • Working with different variable data types
  • Managing variable scope and lifetime
  • Using built-in VBA functions and library functions
  • Working with constant values in your programs
  • Employing predefined system constants
  • Creating message boxes and input dialogs
  • Using dialog boxes for user interaction
  • Declaring object variables for reference types

Module 5: Controlling Program Execution Flow

  • Understanding control structures and flow logic
  • Working with Boolean expressions and conditions
  • Using If...End If conditional blocks for branching
  • Implementing Select Case...End Select for multiple conditions
  • Creating Do...Loop structures for repetition
  • Using For...To...Next loops for iteration
  • Using For Each...Next for collection iteration
  • Selecting appropriate control structures for different scenarios

Module 6: Working with Forms and User Interface Controls

  • Creating and using UserForms for custom interfaces
  • Accessing the Toolbox for control selection
  • Managing UserForm properties, events, and behavior methods
  • Understanding different control types and their purposes
  • Configuring control appearance and properties
  • Working with labels for displaying information
  • Using text boxes for user input
  • Creating command buttons for user actions
  • Implementing combo boxes for lists and selection
  • Using frame controls for grouping
  • Creating option buttons for exclusive selections
  • Formatting and styling control appearance
  • Setting tab order for user navigation
  • Populating controls with data programmatically
  • Attaching event handler code to controls
  • Displaying and launching forms from code

Module 7: Working with the PivotTable Object

  • Understanding PivotTable structure and functionality
  • Creating pivot tables from worksheet data sources
  • Manipulating PivotTable objects through code
  • Working with the PivotFields collection and dimensions
  • Assigning custom macros to the Quick Access Toolbar

Module 8: Debugging Code and Finding Errors

  • Identifying and categorizing different error types
  • Using the integrated debugging tools and features
  • Setting breakpoints to pause execution
  • Stepping through code line by line
  • Using Break Mode to investigate during execution
  • Inspecting variable values and expression results

Module 9: Handling Errors and Exception Management

  • Implementing error handling strategies in your programs
  • Understanding VBA's error trapping mechanisms and options
  • Using the On Error statement to intercept errors
  • Accessing the Err object for error information
  • Building custom error handling routines
  • Using inline error handling where appropriate

Taught by

ONLC Training Centers

Reviews

4.3 rating at CourseHorse based on 8 ratings

Start your review of Excel Programming with VBA (Live Online)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.