Overview

This course is designed to give proficiency in the Visual Basic Editor (VBE), predominantly making use of Excel objects, basic VBA programming, event handling, control structures, and debugging tools.

The course is suitable for users of Office 2007, 2010, 2013, 2016 and 2019 (365) due to the minimal differences between versions. Note that this course will normally be delivered on PCs with Office 2016 installed.

Read more

Prerequisites

  • Navigate, edit and manage Excel workbooks
  • Format worksheets and workbooks
  • Understand the difference between absolute and relative references
  • Understand the basics of Excel formulas and functions, e.g. Sum, text functions
  • Understand the concepts of a Macro and its capabilities

Dual monitor setup is required for when attending this course via the QA Attend from Anywhere delivery method.

Read more

Learning Outcomes

  • Record and edit a Macro
  • Use different techniques in order to run any macros available such as keyboard commands, the use of the Quick Access Toolbars or Buttons
  • Use VBA and examine the Visual Basic Editor; change the properties of an object; add a module to a project; write the code for a procedure and then run it; and use the Object Browser to search procedures
  • Manipulate data by declaring variables of different data types; combine data by using expressions; use functions to accept input and display output; and declare variables and procedures with the appropriate scope
  • Use decision structures to create procedures that make decisions; and use loop structures to perform repetitive tasks
  • Create an error handling routine in case things go wrong with VBA code
Read more

Course Outline

Module 1: Getting started

  • Introducing Visual Basic for Applications
  • Recording a Macro
  • Running a Macro
  • Absolute or Relative Cell Referencing
  • Saving and Opening Files with Macros
  • Adding Macros to Keyboard Shortcuts, Quick Access Toolbar, and Buttons
  • Editing a Macro in the Visual Basic Editor
  • Understanding the Development Environment
  • Customising the Editor
  • Tips for General Typing in VBA
  • Using Visual Basic Help

Module 2: Working with Procedures

  • Program Design
  • Understanding Modules
  • Naming Rules
  • Creating a Module
  • Understanding Procedures
  • Programming Macro Concepts
  • Creating a Subroutine
  • Creating a Function
  • Understanding Arguments
  • Exiting Procedures
  • Calling Procedures

Module 3: Understanding Objects, Properties, Methods, and Events

  • Understanding Objects Properties, Methods, and Events
  • Navigating the Object Hierarchy
  • Understanding Collections
  • Accessing a Member of a Collection
  • Understanding Hierarchy
  • Using the Object Browser
  • Using the With Statement
  • Working with Properties
  • Working with Methods
  • Creating an Event Procedure
  • Reserved Macro Names

Module 4: Using Expressions, Variables and Intrinsic Functions

  • Understanding Expressions and Statements
  • Declaring Variables
  • Understanding Data Types
  • Determining the Value of Variables
  • Working with Variable Scope
  • Using Built-in VBA Functions
  • Understanding Constants
  • Using Message Boxes
  • Controlling the Answer to a Message Box
  • Using Input Boxes
  • Declaring and Using Object Variables

Module 5: Controlling Program Execution

  • Understanding Control-of-Flow Structures
  • Using the If...End If Decision Structures
  • Nested If Statements
  • Using the Select Case ... End Select Structure
  • Using the Do ... Loop Structure
  • Using the For ... Next Structure
  • Using the For Each ... Next Structure
  • Guidelines for Use of Control-of-Flow Structures

Module 6: Working with Forms and Controls

  • Understanding UserForms
  • Creating a Form
  • Displaying and Removing a Form
  • Aligning and Sizing Controls
  • Using the Toolbox
  • Working with a Form's Properties, Methods, and Events
  • Working with Form and Control Properties, Methods and Event
  • Setting the Tab Order
  • Populating a Control

Module 7: Debugging and Handling Errors

  • Understanding Errors
  • Using Debugging Tools
  • Setting Breakpoints and Using Break Mode
  • Stepping Through Code
  • Trapping Errors with the On Error Statement
  • Understanding the Err Object
  • Working with Inline Error Handling
  • Writing an Error-Handling Routine
Read more

Why choose QA

Special Notices

Please note: for Attend from Anywhere customers an additional screen is required for this course to work through remote desktop labs and view training information.

Dates & Locations

Frequently asked questions

See all of our FAQs

How can I create an account on myQA.com?

There are a number of ways to create an account. If you are a self-funder, simply select the "Create account" option on the login page.

If you have been booked onto a course by your company, you will receive a confirmation email. From this email, select "Sign into myQA" and you will be taken to the "Create account" page. Complete all of the details and select "Create account".

If you have the booking number you can also go here and select the "I have a booking number" option. Enter the booking reference and your surname. If the details match, you will be taken to the "Create account" page from where you can enter your details and confirm your account.

Find more answers to frequently asked questions in our FAQs: Bookings & Cancellations page.

How do QA’s virtual classroom courses work?

Our virtual classroom courses allow you to access award-winning classroom training, without leaving your home or office. Our learning professionals are specially trained on how to interact with remote attendees and our remote labs ensure all participants can take part in hands-on exercises wherever they are.

We use the WebEx video conferencing platform by Cisco. Before you book, check that you meet the WebEx system requirements and run a test meeting (more details in the link below) to ensure the software is compatible with your firewall settings. If it doesn’t work, try adjusting your settings or contact your IT department about permitting the website.

Learn more about our Virtual Classrooms.

How do QA’s online courses work?

QA online courses, also commonly known as distance learning courses or elearning courses, take the form of interactive software designed for individual learning, but you will also have access to full support from our subject-matter experts for the duration of your course. When you book a QA online learning course you will receive immediate access to it through our e-learning platform and you can start to learn straight away, from any compatible device. Access to the online learning platform is valid for one year from the booking date.

All courses are built around case studies and presented in an engaging format, which includes storytelling elements, video, audio and humour. Every case study is supported by sample documents and a collection of Knowledge Nuggets that provide more in-depth detail on the wider processes.

Learn more about QA’s online courses.

When will I receive my joining instructions?

Joining instructions for QA courses are sent two weeks prior to the course start date, or immediately if the booking is confirmed within this timeframe. For course bookings made via QA but delivered by a third-party supplier, joining instructions are sent to attendees prior to the training course, but timescales vary depending on each supplier’s terms. Read more FAQs.

When will I receive my certificate?

Certificates of Achievement are issued at the end the course, either as a hard copy or via email. Read more here.

Contact Us

Please contact us for more information