Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Instructor-led training - Instructor-led training

Microsoft VBA Excel Course Intermediate Training Course 1 dayMicrosoft VBA Excel Course

Intermediate level

Face to face / Online public schedule & onsite training. Restaurant lunch included at STL venues.

Designed for Excel 365

Intermediate Courses in London and UK wide.

Who is this course for?

This course is suitable for advanced users of Microsoft Excel looking to further increase their knowledge of VBA.

Prerequisites

A good working knowledge of the topics covered in the Microsoft Excel VBA Introduction course is required, or completion of our Excel VBA Introduction course.

Benefits


  • By the end of the course the delegate will be fully competent in the fundamentals of VBA, including working with functions, understanding objects, using expressions, variables and intrinsic functions.
  • This includes mastering forms and controls, and building user defined functions.
  • There will also be discussion of techniques for improving and optimizing code.

Course Syllabus

Storing information with variables

How and why you should declare variables
Determining which data type to use
Public v Private scope
Using variables to trap errors
Using the Locals window to observe variables

Creating functions

Writing your own User Defined Functions (UDFs)
Working with multiple arguments
Using your function in Excel

Message Boxes and Input Boxes

Displaying a message
Adding a yes / no user choice
Getting feedback from the end user

Handling Errors

Defining VBA's Error Trapping Options
Capturing Errors with the On Error Statement
Determining the Err Object
Coding an Error-Handling Routine
Using Inline Error Handling

Creating custom dialogue boxes with UserForms

Drawing UserForms
Setting UserForm properties, events and methods
Using text boxes, command buttons, combo boxes and other controls
Formatting controls
Applying code to controls
How to launch a form in code

"What do I get on the day?"

Arguably, the most experienced and highest motivated trainers.

Face-to-face training

lunch

Training is held in our modern, comfortable, air-conditioned suites.

Modern-spec IT, fully networked with internet access

Lunch, breaks and timing

A hot lunch is provided at local restaurants near our venues:

  • Bloomsbury
  • Limehouse

Courses start at 9:30am.

Please aim to be with us for 9:15am.

Browse the sample menus and view joining information (how to get to our venues).

Refreshments

Available throughout the day:

  • Hot beverages
  • Clean, filtered water
  • Biscuits

Online training

online training (virtual)

Regular breaks throughout the day.

Learning tools

in-course handbook

In-course handbook

Contains unit objectives, exercises and space to write notes

Reference material

Available online. 100+ pages with step-by-step instructions

24 months access to Microsoft trainers

Your questions answered on our support forum.

What to expect when training

Training Formats & Services

  • On a public schedule at one of our
    London training venues.
  • On-site at your company office UK wide
  • Near-site, at a location close to you
  • Tailored courses to your requirements
  • Productivity Training Programs
  • Consultancy
  • Bespoke one-to-one
  • Rollout
  • TNA
  • Upgrade
  • Case studies

Hewlett-Packard Ltd

gravatar

Sanj Sanghera,
Management Consultant

Enjoyed the course and learning the importance of Variables. Great enthusiasm demonstrated by Marius and I will practice the methods he has has taught.

B G Group

gravatar

Derek Budd,
Business Analyst

Marius was excellent, really enthusiastic and helpful.

Learnt A LOT today, highly recommend this course.

Thank you!

University of Greenwich

gravatar

Mig Farinas,
Lecturer

Well done yet again!

More testimonials

Public schedule dates

Next date Location Price
Tue 30 JunLimehouse £325
Mon 27 JulOnline£290
Tue 4 AugBloomsbury £290
Thu 10 SepOnline£290
Fri 11 SepLimehouse £290
Fri 16 OctOnline£290

And 16 more dates...

Loading...

Loading content...

TrustPilot

star star star star star Excellent

Resources

Blog

Tutorials and discussions on MS Office

Hints & Tips

MS Office tips to save you time

Cheat sheets

MS Office shortcut keys for all versions

Infographics

Handy info on industry trends

Subscribe

Latest news & offers

Promotions

Latest Feedback

  • 98.50% customer recommendation
  • 99.27% training objectives met
  • 234,941 delegates trained
  • 14,758 organisations trained

Latest X / Tweet

  • Our Engaging #NegotiationSkills course is helping professionals handle complex conversations with confidence ✅ Big shout‑out to Hazel for delivering high‑impact training. Support continues via our 2‑year forum 📈 #feedback #ProfessionalDpic.x.com/zwSaDgtLun/zwSaDgtLun
Loading...

Loading content...

Free manuals

We are providing a range of our course manuals free of charge.

Why not share this resource with your friends and colleagues?

Training manual sample

Below are some extracts from our Excel training manuals.

Store Code Cleanly

Variables are used to store data that your VBA code can manipulate. Think of them as containers that hold information

which can be referenced and manipulated throughout your code.

 

Declaring Variables

Why declare variables?

Improves Code Readability: Declaring variables makes your code easier

to read and understand.

Error Checking: VBA can catch errors related to undeclared variables.

Memory Management: Helps manage memory usage efficiently.

How to declare variables?

Use the Dim statement:

Dim variableName As DataType

Example:

Dim total As Integer

Dim name As String

 

Determining Data Types

Choosing the right data type is crucial for efficient memory usage and performance. Here are some common data types:

Integer: Whole numbers.

Long: Larger whole numbers.

Double: Numbers with decimals.

String: Text.

Boolean: True or False.

Example:

Dim age As Integer

Dim salary As Double

Dim isActive As Boolean

Build Your Own Functions

Creating your own functions in Excel VBA can greatly enhance your productivity by allowing you to perform custom

calculations and operations. Let’s go through the process of creating User Defined Functions (UDFs) with multiple examples.

 

Writing Your Own User Defined Functions (UDFs)

A UDF is a custom function that you can create using VBA. These functions can be used in Excel just like built-in functions.

 

Basic Structure of a UDF

To create a UDF, you need to define a function using the Function keyword, followed by the function name, any arguments,

and the data type of the return value.

Function FunctionName(arguments) As DataType

' Function code

FunctionName = result

End Function

Example 1: Simple Addition Function

Function AddNumbers(x As Double, y As Double) As Double

AddNumbers = x + y

End Function

You can use this function in Excel by typing =AddNumbers(5, 10) in a cell, which will return 15.

Handle Errors Gracefully

Determining the Err Object

The Err object contains information about the error that occurred. Key properties include:

Err.Number: The error number.

Err.Description: A description of the error.

Err.Source: The name of the object or application that caused the error.

Example:

Sub ExampleErrObject()

On Error Resume Next

Dim x As Integer

x = 1 / 0

If Err.Number <> 0 Then

MsgBox 'Error ' & Err.Number & ': ' & Err.Description

Err.Clear ' Clear the error

End If

End Sub

Create Smarter Dialogues

Creating custom dialogue boxes with UserForms in Excel VBA can greatly enhance the interactivity of your spreadsheets.

Let’s go through each step with examples:

 

1. Drawing UserForms

To create a UserForm:

Open the Visual Basic for Applications (VBA) editor by pressing Alt + F11.

Insert a new UserForm by selecting Insert > UserForm.

2. Setting UserForm Properties, Events, and Methods

You can set properties such as the form’s name, caption, and size in the Properties window. For example:

Name: MyUserForm

Caption: Custom Dialog

To handle events like initializing the form, you can use the code window:

Private Sub UserForm_Initialize()

Me.Caption = 'Welcome to My Custom Dialog'

End Sub

3. Using Text Boxes, Command Buttons, Combo Boxes, and Other Controls

You can add controls by selecting them from the Toolbox and drawing them

on the UserForm.

For example:

TextBox: For user input.

CommandButton: To trigger actions.

ComboBox: For dropdown selections.

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.6 secs.