Introduction to Excel Macros and VBA

Duration: 2 Days


This example-based, hands-on course introduces delegates to the fundamentals of writing Excel macros. You will learn how to create procedures to automate your work, remove the risk of inconsistencies and errors in repetitive tasks and above all, to save time. You will learn to write and edit macros for Excel, using Visual Basic for Applications and the Integrated Development Environment.


This course assumes a sound grasp of Excel, including writing worksheet formulae such as SUM, MAX, MIN, AVERAGE etc and formatting data. Any experience of recording and stepping through macros will be beneficial, but is not a pre-requisite for attendance.

Course includes

A comprehensive set of reference notes covering course topics, follow-up telephone support and, for training on Transmedia premises, lunch and refreshments.

Course outline

Basics of writing VBA

  • Overview
  • Introduction

Selecting objects and setting values

  • Overview
  • Properties and methods
  • Named vs Positional arguments
  • Examples of Properties and Methods
  • Selecting cells and inserting data

Setting format properties

  • Adding formatting to a worksheet

Using variables to store information

  • Data types for variables

Interacting with the user

  • Using an InputBox to get information
  • Some examples of using the InputBox function
  • Using InputBoxes to automate headers and footers
  • Using a MsgBox to give information to the user
  • Using a MsgBox to get information from the user
  • MsgBox functions
  • InputBoxes, MsgBoxes and functions

Branching and looping

  • The IF block
  • Using IF…ELSE…END IF
  • Select case
  • Using SELECT CASE to test a single conditional against multiple outcomes
  • Using Loops, DO…LOOP

Object Variables and FOR EACH… NEXT loops

  • Using object variables
  • Using the UNION function and multiple object variables

This course is available as a private or customised course. Contact us for further information and to customise this course to your exact requirements:

Phone us: 0208 269 4260Book Now

"I am writing to say thank you for organising my FileMaker training day; I learned so much with my trainer, Nick, and have come away with such a great database. It delighted both the Director and my job share partner. I feel I have left with a great amount of knowledge that can help the business immensely. I learned more than I thought I would and would like to thank Transmedia for being so helpful!"

Lucie Mills

"Lovely accommodation and atmosphere. The training was well structured and clear."

Alistair Sawday Publishing

"I just wanted to let you know that I've managed to replicate the steps you showed me in FileMaker on my organisation's database and have managed to get my invoicing layouts to work perfectly. Thank you very much! I've also been able to use some of the other things you showed me to good effect too so the course has already helped enormously. Just thought you should know :-)"

Julian Support

© Transmedia . 85 Tottenham Court Road, London, W1T 4TQ  UK . 0208 269 4260       Privacy Policy