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

Microsoft Project Training Series | Level 4

Course Details

Duration: 2 days

Microsoft® Project® Versions: 2010 | 2013 | 2016 | 365 (other versions on request)

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

Course Dates: June 28/29, 2017 | View schedule Course schedule

Course Fee: $595 CDN per person + HST or BYOD (bring your own device): $545 CDN person + HST*

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

Register for this training course.

Course Overview

This instructor-led course is designed for the Microsoft Project user who wants automate tasks using Visual Basic for Applications (VBA) but has little or no programming experience. Students will write VBA macros and use modules, procedures, variables and constants within the Visual Basic Editor (VBE) window. Using many different samples, students will create sub procedures with if statements, loops and dialogs. Macros will be be run using different strategies to automate Microsoft Project.

Prerequisite: Microsoft Project: Intermediate or equivalent knowledge and skills.

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

Related training: View all Microsoft Project courses


  • 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

VBA Macro Concepts in Microsoft Project

  • What is a VBA macro?
  • Displaying the Developer tab in Microsoft Project
  • Saving files with macros enabled

Microsoft Project Macro Security

  • Specifying macro security settings in Project
  • Creating a trusted folder for macro enabled projects

Working in the Visual Basic Editor (VBE)

  • Displaying the Visual Basic Editor (VBE)
  • Exiting the VBE
  • Using the Project Explorer to locate modules
  • Working in the Code Window
  • Showing/hiding panes in the VBE
  • Entering properties

Writing Sub Procedures with VBA

  • Code syntax logic
  • Entering sub procedures
  • Macro naming conventions
  • Working with modules in projects
  • Using methods with objects
  • Inserting comments
  • Running procedures within other procedures

Running Macros

  • Running macros in different ways

Using Variables and Constants

  • Using constants and variables in code
  • Types of variables
  • Declaring variables
  • Declaring several variables
  • Procedure level scope, module level scope or public scope

If Decision Structures

  • Writing If statements in code
  • Using If for single and multiple conditions

User Interaction using Messages

  • Displaying messages with message boxes
  • Using input boxes and extracting user information
  • Specifying arguments


  • Looping for items
  • Exiting a loop
  • Using the Do Loop statement

Managing Files

  • Opening and closing using VBA
  • Accessing project information
  • Referencing files, folders and drives

Handling Errors

  • Types of errors
  • Working in the Immediate window
  • Using basic error handling
  • Resuming macros after an error

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 need more information? Contact us!

Copyright 2017 Avantix Learning Inc.

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

*Prices subject to change.

^ Back to top


Businessman pointing to buttons on a virtual screen and a solutiong button.

You may like

Auto vs Manual Scheduling in Microsoft Project

Auto vs Manual Scheduling in Microsoft Project

In newer versions of Microsoft Project, you have the option of scheduling tasks using manual or auto scheduling. In earlier versions, Microsoft Project used auto scheduling which takes advantage of Project's scheduling engine to schedule tasks.

How to Create a Timeline in Microsoft Project

How to Create a Timeline in Microsoft Project

Timelines are a great way to view key tasks and milestones in a project. You can add tasks to a timeline and then format it any way you'd like. Copy a timeline into an email or Word or PowerPoint file to present the timeline.

You may also like

How to Combine First and Last Name in Excel (5 Ways)

How to Combine First and Last Name in Excel (5 Ways)

You can combine first and last name in Excel in several ways – using the CONCATENATE operator, the CONCATENATE function, the CONCAT function, the TEXTJOIN function or Flash Fill. These functions are often used to combine text in cells but you can also combine text with spaces, commas, dashes or another character. It's common to combine first and last names that appear in two columns into one new column. Some functions are only available in newer versions of Excel but the CONCATENATE operator and function are available in all versions.

How to Insert Multiple Columns in Excel (4 Fast Ways with Shortcuts)

How to Insert Multiple Columns in Excel (4 Fast Ways with Shortcuts)

You can quickly insert multiple columns in Excel using a drop-down menu, keyboard shortcuts or the Home tab in the Ribbon. The key to inserting multiple columns at once, rather than one by one, is to select the number of columns you want to insert first and then insert columns. Excel will insert the same number of columns you selected.

How to Fade a Picture or Part of a Picture in PowerPoint (Using a Gradient)

How to Fade a Picture or Part of a Picture in PowerPoint (Using a Gradient)

You can fade a picture in PowerPoint by drawing a rectangle shape on top of the picture and then filling the rectangle with a gradient from opaque to transparent. This technique is often used to fade an image into the background of a slide. Since the rectangle is placed on top of the image and then text may be placed on top of the rectangle, you may need to reorder the objects.

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 |

Upcoming Training
Microsoft Project; VBA (Visual Basic for Applications) | Introduction (Toronto course)
Avantix Learning, 1 Yonge Street, Suite 1801 (Toronto Star Building),Toronto, Ontario, Canada,
Next course starts
June 28, 2017
Next course ends
June 29, 2017

Pin It on Pinterest