Microsoft Excel Programming with VBA

Master Microsoft Excel VBA programming to automate tasks and enhance productivity, designed for Excel users aiming to elevate their data manipulation skills.

Course Thumbnail

Essential Skills Gained

Checkmark

Design VBA scripts to automate Excel functionalities.

Checkmark

Implement macros to add interactivity to Excel PivotTables.

Checkmark

Understand and utilize Excel classes and objects.

Checkmark

Gain proficiency in debugging and error handling in VBA.

Format

  • Instructor-led
  • 3 days with lectures and hands-on labs.

Audience

  • Excel Power Users
  • Data Analysts
  • Financial Modelers
  • Business Intelligence Professionals

Description

Students learn the Visual Basic for Applications language as well as the Excel classes and objects needed to create VBA scripts to automate Excel. Participants create procedures and functions using the VBA language and Excel objects. The PivotTable object is used to create macros that add interactivity to the standard Pivot Table. As well, debugging and error handling techniques are reviewed.

Calendar icon

Upcoming Course Dates

No upcoming dates. Please check back later.

Course Outline

Download PDF

Getting Started

  1. Introducing Visual Basic for Applications

  2. Displaying the Developer Tab in the Ribbon

  3. Recording a Macro

  4. Saving a Macro-Enabled Workbook

  5. Running a Macro

  6. Editing a Macro in the Visual Basic Editor

  7. Understanding the Development Environment

  8. Using Visual Basic Help

  9. Closing the Visual Basic Editor

  10. Understanding Macro Security

Working with Procedures and Functions

  1. Understanding Modules

  2. Creating a Standard Module

  3. Understanding Procedures

  4. Creating a Sub Procedure

  5. Calling Procedures

  6. Using the Immediate Window to Call Procedures

  7. Creating a Function Procedure

  8. Naming Procedures

  9. Working with the Code Editor

Understanding Objects

  1. Understanding Objects

  2. Navigating the Excel Object Hierarchy

  3. Understanding Collections

  4. Using the Object Browser

  5. Working with Properties

  6. Using the With Statement

  7. Working with Methods

  8. Creating an Event Procedure

Using Expressions, Variables, and Intrinsic Functions

  1. Understanding Expressions and Statements

  2. Declaring Variables

  3. Understanding Data Types

  4. Working with Variable Scope

  5. Using Intrinsic Functions

  6. Understanding Constants

  7. Using Intrinsic Constants

  8. Using Message Boxes

  9. Using Input Boxes

  10. Declaring and Using Object Variables

Controlling Program Execution

  1. Understanding Control-of-Flow Structures

  2. Working with Boolean Expressions

  3. Using the If...End If Decision Structures

  4. Using the Select Case...End Select Structure

  5. Using the Do...Loop Structure

  6. Using the For...To...Next Structure

  7. Using the For Each...Next Structure

  8. Guidelines for use of Control-of-Flow Structures

Working with Forms and Controls

  1. Understanding UserForms

  2. Using the Toolbox

  3. Working with UserForm Properties, Events, and Methods

  4. Understanding Controls

  5. Setting Control Properties in the Properties Window

  6. Working with the Label Control

  7. Working with the Text Box Control

  8. Working with the Command Button Control

  9. Working with the Combo Box Control

  10. Working with the Frame Control

  11. Working with Option Button Controls

  12. Working with Control Appearance

  13. Setting the Tab Order

  14. Populating a Control

  15. Adding Code to Controls

  16. Launching a Form in Code

Working with the PivotTable Object

  1. Understanding PivotTables

  2. Creating a PivotTable Using Worksheet Data

  3. Working with the PivotTable Objects

  4. Working with the PivotFields Collection

  5. Assigning a Macro to the Quick Access Toolbar

Debugging Code

  1. Understanding Errors

  2. Using Debugging Tools

  3. Setting Breakpoints

  4. Stepping through Code

  5. Using Break Mode during Run mode

  6. Determining the Value of Expressions

Handling Errors

  1. Understanding Error Handling

  2. Understanding VBA's Error Trapping Options

  3. Trapping Errors with the On Error Statement

  4. Understanding the Err Object

  5. Writing an Error-Handling Routine

  6. Working with Inline Error Handling

Your Team has Unique Training Needs.

Your team deserves training as unique as they are.

Let us tailor the course to your needs at no extra cost.