Course Length: 3-days

Course Overview

Visual Basic for Applications (VBA) enables you to enhance and extend the capabilities of Microsoft® Excel® and other applications in the Microsoft® Office application suite. You can use VBA to perform tasks that would be difficult or impossible to do using only worksheet functions, and you can automate a wide range of tasks involving the collection, processing, analysis, and visualization of data. This course will give you a good foundation for understanding, creating, and using VBA in your own Excel workbooks, show you how to work with data across different applications, and how to package the macros and functions you create so you can back them up, move them to other computers, and share them with other users.

This course is primarily designed for students who want to gain the skills necessary to use VBA to automate tasks in Excel such as collecting data from external sources, cleaning, and manipulating data. The target student may also want to learn how to create custom worksheet functions to streamline worksheet formulas and make complex worksheets easier to support, maintain, and understand.

In this course, you will develop and deploy VBA modules to solve business problems.

  • Identify general components of VBA and their appropriate use in solving business solutions.
  • Record VBA macros to automate repetitive tasks.
  • Use reference tools built into Excel to get help on VBA programming language and objects used in the Excel VBA environment.
  • Write VBA code to create a custom worksheet function.
  • Eliminate, avoid, or handle errors in VBA code, and optimize its performance.
  • Control how and when macros run.
  • Develop UserForm objects to create custom dialog boxes and windows.
  • Use VBA to read and write data from local files and cloud services.
  • Use VBA to clean and transform data.
  • Run programs and commands outside of Excel and share VBA projects with other users.

Prerequisites

To ensure your success in this course, you should be an experienced Excel user who is comfortable creating and working with Excel workbooks, including tasks such as entering worksheet formulas, using absolute and relative addressing, formatting cells, and creating pivot tables and charts. This level of skill could be acquired by taking:

Excel Level 2 Intermediate

Excel - Data Analysis and Forecasting Advanced

Excel Programming with VBA

Course Outline

Using VBA to Work with Files

  • Use VBA to Get File and Directory Structure
  • Use VBA to Read Text Files
  • Use VBA to Write Text Files

Using VBA to Clean and Transform Data

  • Automate Power Query
  • Transform Data Using VBA and Workbook Functions
  • Use Regular Expressions
  • Manage Errors in Data

Extending the Programming Environment Beyond the Workbook

  • Run Other Programs and Commands
  • Share Your VBA Projects