Microsoft Excel: Visual Basic for Applications
(VBA) Macros | Introduction

Microsoft Excel Training Series | Level 4

Course Details

Duration: 2 days (9 am – 4 pm)

Microsoft® Excel® Versions: 2013 | 2016 | 2019 | 365 (Windows)

Delivery Methods (Instructor-led): Live classroom (LC) | Virtual classroom (VC)

Course Dates: June 15/16, 2021 (Virtual classroom) | View schedule Course schedule

Course Fee: $495 CDN per person (Virtual classroom), $545 CDN per person (Bring your own device – for live classroom courses only) or $595 CDN per person + HST (Avantix Learning provides device – for live classroom courses only)*

Custom training: This course may be delivered at your site or ours as an instructor-led or virtual classroom solution. Contact us at info@avantixlearning.ca for more information including savings for custom group training.

Public scheduled courses are delivered as live classroom training or virtual classroom training (as indicated). All courses are instructor-led.

Register for this training course.

Course Overview

In this course, students will learn to automate Excel by writing VBA (Visual Basic for Applications) macros. Designed for the novice or non-programmer, students will start by recording VBA macros and then use the Visual Basic Editor (VBE) window to write and edit code for sub procedures in modules. Basic syntax logic will be reviewed and students will work with projects, modules, procedures, variables and constants within the VBE window. If statements and loops will also be created using various examples. Students will run macros using different strategies including  keyboard shortcuts. A simple user-defined function will also be written to automate a calculation. Throughout the course, the instructor will include numerous tips, tricks and shortcuts. Each student will also receive a full course manual.

Prerequisite: Microsoft Excel: Intermediate / Advanced or equivalent knowledge and skills.

Location and timing: Public scheduled courses are held online in virtual classroom format or in downtown Toronto and run from 9:00 am to 4:00 pm (Eastern Time).

Related training: View all Microsoft Excel courses >

INCLUDED IN THIS COURSE

  • Comprehensive course manual or published book
  • Keyboard shortcuts quick reference
  • Sample and exercise files
  • Refreshments (for classes conducted in Avantix Learning classrooms)
  • Certificate of completion
  • Follow-up email support

Course Topics

Overview of Macro Concepts

  • What is a macro?
  • Displaying the Developer tab in Excel
  • Creating macros using the Macro Recorder
  • Assigning a keyboard shortcut
  • Viewing a list of macros
  • Viewing the VBA code for a recorded macro
  • Absolute vs relative referencing
  • Limitations of recorded macros

Saving and Opening Files with Macros

  • Deciding where to save macros
  • Saving workbooks with macros
  • Opening workbooks with macros

Macro Security and Trust Centre Settings

  • Specifying macro security settings
  • Creating a trusted folder

Working in the VBE (Visual Basic Editor)

  • Overview of VBE menus and toolbars
  • Displaying different parts of the window
  • Working with the Project Explorer
  • Viewing the iVBA Code window
  • Setting properties
  • Displaying other windows
  • Returning to Excel

Getting Started Writing Code using VBA

  • Inserting a module
  • Basic VBA syntax logic
  • Creating sub procedures or macros
  • Naming sub procedures or macros
  • Controlling the display of code
  • Adding comments
  • Referencing objects
  • Using methods and properties
  • Getting help

Working with Modules

  • Different ways of Inserting new modules
  • Creating multiple sub procedures in a module
  • Renaming modules
  • Deleting modules
  • Saving a backup of modules

Running Macros

  • Using the Macros dialog to run macros
  • Running macros using keyboard shortcuts
  • Running macros from within the VBA window
  • Displaying buttons on the Quick Access Toolbar or the Ribbon to run macros
  • Running macros by creating buttons on a worksheet

Using Variables and Constants

  • Using constants and variables in VBA code
  • Types of variables including integer, long and string
  • Declaring variables
  • Benefits of declaring variables

Changing Scope

  • Procedure level scope, module level scope or public scope

Displaying Input Boxes and Message Boxes

  • Displaying messages
  • Using input boxes for entry
  • Using message boxes and input boxes with variables
  • Displaying different types of buttons

Using If Statements in VBA

  • Benefits of If … Then statements
  • Syntax for  If  … Then … Else statements
  • Using If statements with message boxes or input boxes

Using For … Next Loops

  • Using loops
  • Using For … Next loops
  • Ending a loop
  • Changing loop step values

Basic Debugging

  • Common errors and break mode
  • Using Reset
  • Commenting out problem lines of code

NOTE: This course is designed for students who have never used VBA. For those users who have been using VBA, we recommend the Intermediate Excel VBA course.

Register Now for a public course at our downtown Toronto location at 1 Yonge Street, Suite 1801 (Toronto Star Building), Toronto, Ontario, Canada.

Do you have any other questions? Contact us!

If you are looking for more information regarding versions, check out our Microsoft Excel versions overview.

To request this page in an alternate format, contact our staff.

*Prices subject to change.

Our instructor-led courses are delivered in virtual classroom format or at our downtown Toronto location at 1 Yonge Street, Suite 1801 (Toronto Star Building), Toronto, Ontario, Canada (some live classroom courses may also be delivered at an alternate downtown Toronto location). Contact us at info@avantixlearning.ca if you'd like to arrange custom training on a date that's convenient for you.

Copyright 2021 Avantix® Learning

Microsoft Excel training man pointing to icons.

You may like

How to Convert Cm to Inches in Excel (or Inches to Cm)

How to Convert Cm to Inches in Excel (or Inches to Cm)

Convert Inches to Centimeters or Vice Versa in Excel Worksheets by Avantix Learning Team | Updated November 27, 2020 Applies to: Microsoft® Excel® 2010, 2013, 2016, 2019 and 365 (Windows) You can convert cm to inches (inches to centimeters or centimetres) using...

How to Hide Comments or Notes in Excel Workbooks

How to Hide Comments or Notes in Excel Workbooks

Hide Notes and Comments in Microsoft Excel by Avantix Learning Team | Updated October 17, 2020 Applies to: Microsoft® Excel® 2010, 2013, 2016, 2019 and 365 (Windows) You can hide comments and notes in Excel workbooks. In addition to adding comments in Excel, there is...

How to Delete Blank Rows in Excel (5 Ways)

How to Delete Blank Rows in Excel (5 Ways)

Easy Ways to Remove Blank Rows in Microsoft Excel Worksheets by Avantix Learning Team | Updated April 5, 2021 Applies to: Microsoft® Excel® 2010, 2013, 2016, 2019 and 365 (Windows) You can delete blank rows in Microsoft Excel worksheets manually or you can use several...

How to Move a Pivot Table in Excel

How to Move a Pivot Table in Excel

Move a Pivot Table in the Same Worksheet or to a Different Worksheet in Microsoft Excel by Avantix Learning Team | Updated March 15, 2021 Applies to: Microsoft® Excel® 2013, 2016, 2019 and 365 (Windows) Moving a pivot table is not as simple as moving other objects in...

You may also like

How to Insert a Nonbreaking Space in Word

How to Insert a Nonbreaking Space in Word

Insert a Nonbreaking Space in Word to Keep Words or Characters Together by Avantix Learning Team | Updated April 5, 2021 Applies to: Microsoft® Word® 2010, 2013, 2016, 2019 and 365 (Windows) If you want to keep words or characters together on the same line in a Word...

How to Use a Laser Pointer in PowerPoint (with Shortcuts)

How to Use a Laser Pointer in PowerPoint (with Shortcuts)

Display a Laser Pointer During a PowerPoint Slide Show (and Choose Red, Green or Blue Pointers) by Avantix Learning Team | Updated January 29, 2021 Applies to: Microsoft® PowerPoint® 2010, 2013, 2016, 2019 and 365 (Windows) During a PowerPoint slide show, you can...

How to Add Audio in PowerPoint Presentations

How to Add Audio in PowerPoint Presentations

Add Audio in PowerPoint from a File on Your PC or Shared Drive by Avantix Learning Team | Updated April 13, 2021 Applies to: Microsoft® PowerPoint® 2013, 2016, 2019 and 365 (Windows) You can add audio in PowerPoint from a file on your PC or from a shared drive. Audio...

Microsoft, the Microsoft logo, Microsoft Office and related Microsoft applications and logos are registered trademarks of Microsoft Corporation in Canada, US and other countries. All other trademarks are the property of the registered owners.

Avantix Learning | 1 Yonge Street, Suite 1801 (Toronto Star Building), Toronto, Ontario, Canada M5E 1W7 | info@avantixlearning.ca

Upcoming Training
Course
Microsoft Excel: Visual Basic for Applications | Introduction (Virtual classroom or Toronto course)
Location
Avantix Learning, 1 Yonge Street, Suite 1801 (Toronto Star Building),Toronto, Ontario,Canada
Next course starts
June 15, 2021
Next course ends
June 16, 2021

Pin It on Pinterest