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

Microsoft Excel Training Series | Level 4

Course Details

Duration: 2 days

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

Delivery Methods: Instructor-led classroom (ILC) | Virtual classroom (VC) on request

Course Dates: August 27/28, 2020 | View schedule Course schedule

Course Fee: $575 CDN per person + HST (bring your own device) or $625 CDN per person + HST (Avantix Learning provides device)*

Note: Public scheduled dates for this course are delivered as live instructor-led classroom training.

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 in downtown Toronto and run from 9:00 am to 4:00 pm (Eastern Standard Time).

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.

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.

Copyright 2020 Avantix® Learning Inc.

Instructor writing on virtual graph in Microsoft Excel VBA training course in Toronto.

You may like

How to Delete a Pivot Table in Excel

How to Delete a Pivot Table in Excel

A pivot table can be deleted in an Excel workbook in several ways. You can delete a pivot table, convert a pivot table to values or clear data and customizations from a pivot table to reset it. When a pivot table is created from source data in a workbook,

How to Change Commas to Decimal Points and Vice Versa in Excel (5 Ways)

How to Change Commas to Decimal Points and Vice Versa in Excel (5 Ways)

Depending on your country or region, Excel may display decimal points or dots instead of commas for larger numbers. The decimal point (.) or comma (,) is used as the group separator in different regions in the world. You can change commas to decimal points or dots or vice versa in your Excel workbook temporarily or permanently.

How to Group by Month and Year in a Pivot Table in Excel

How to Group by Month and Year in a Pivot Table in Excel

You can group by month, year or other date period in a pivot table in Excel. One option is to group by date periods in a pivot table using the Grouping feature. Alternatively, you can also create calculations in source data to extract the month name and the year from a date field and use the fields in your pivot table.

You may also like

How to Create, Use and Edit Templates in Microsoft Word

How to Create, Use and Edit Templates in Microsoft Word

You can create, use and edit templates in Microsoft Word for frequently used documents such as letters, reports, proposals and manuals. Templates include basic character, paragraph and page formatting and may include text, custom styles, tables, images, macros, sections, headers and footers.

Change Line Style, Thickness or Color of Table or Cell Borders in PowerPoint

Change Line Style, Thickness or Color of Table or Cell Borders in PowerPoint

You can change the formatting of a table border or the borders of multiple table cells in PowerPoint by changing the line style, thickness (weight) or color. Different borders can be applied to cells in the same table. For example, you could apply a thick line to header cells and a thin line to the cells in the last row of a table.

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 (Toronto course)
Location
Avantix Learning, 1 Yonge Street, Suite 1801 (Toronto Star Building),Toronto, Ontario,Canada
Next course starts
August 27, 2020
Next course ends
August 28, 2020

Pin It on Pinterest