Face to face / Online public schedule & onsite training. Restaurant lunch included at STL venues.
| (556 reviews, see all 106,559 testimonials) |
From £300 List price £350
This course is suitable for advanced users of Microsoft Excel. If they are responsible for very large and variable amounts of data, or teams, who need to learn how to program features and functions to develop the accessibility and usability of their data.
A thorough knowledge of Microsoft Excel is required, or completion of our Microsoft Excel Advanced course.
Introducing Visual Basic for Applications
Why use VBA?
Recording and running macros
Absolute v relative cell selection
Working with the Visual Basic Editor
Creating your own code
Understanding and creating modules
Defining procedures
Calling procedures
Where to store macros
Making decisions in code
Using logical comparisons
The IF...ENDIF structure
The SELECT CASE...END SELECT structure
When to use IF v SELECT CASE
Repeating code with loops
The DO... LOOP structure
The FOR... NEXT structure
The FOR EACH... NEXT structure
How to debug problems with loops
Debugging errors
Defining errors
Setting breakpoints to pause execution
How to step through code
Working with break mode to spot errors
Identifying the value of expressions
Understanding Visual Basic
What is an Object?
Examining the Excel object hierarchy
Using the object browser
How to explore methods and properties
Getting help in VBA
Arguably, the most experienced and highest motivated trainers.
Training is held in our modern, comfortable, air-conditioned suites.
Modern-spec IT, fully networked with internet access
A hot lunch is provided at local restaurants near our venues:
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).
Available throughout the day:
Regular breaks throughout the day.
Contains unit objectives, exercises and space to write notes
Available online. 100+ pages with step-by-step instructions
Your questions answered on our support forum.
|
|
Doxa Partners LLP
Dean Du,
Partner
Great course, very informative. Worked through many examples which really helped the learning process.
Excel VBA Introduction
Thought Provoking Consulting
Adam Hobbs,
Consultant
Trainer was very enthuastic and covered a lot of ground. One way to improve may be to provide the files that were used on the day so we can go back through the code (may already be a thing but not as far as I'm aware).
Excel VBA Introduction
C.P. Hart & Sons Ltd
Beth Manning,
Product Information Manager
Everything worked for me, I could see straight away how I could be using VBA in my day to day work. I now plan on using it for a far greater number of tasks than I thought I would initially
Excel VBA Introduction
| Next date | Location | Price |
|---|---|---|
| Thu 21 May | Bloomsbury | £290 |
| Mon 15 Jun | Online | £290 |
| Fri 26 Jun | Bloomsbury | £290 |
| Wed 22 Jul | Online | £290 |
| Mon 3 Aug | Bloomsbury | £290 |
| Fri 28 Aug | Online | £290 |
And 19 more dates...
Loading content...

Excellent
HSBC
Project Manager
Alexander Orlov
"I was looking for a specific training for my data analytical team to equip them with more tools to slice and dice the data, building more trust worthy sophisticated propensity models, using SQL, VBA and Excel. I came across with STL training and my research and expectations were match by 100%. Spot on! Great professionals! Highly recommended for all banking and financial professionals that are using Excel on BAU basis."
Tutorials and discussions on MS Office
MS Office tips to save you time
MS Office shortcut keys for all versions
Handy info on industry trends
Latest news & offers
Loading content...
Below are some extracts from our Excel training manuals.
Excel VBA (Visual Basic for Applications) is a programming language developed by Microsoft that allows you to automate tasks and create custom functions in Excel. VBA can be used to write macros, which are sequences of instructions that Excel can execute to perform repetitive tasks, manipulate data, and interact with other applications.
Example 1: Displaying a Message Box
Open the VBA Editor:
Press Alt + F11 to open the VBA editor.
Insert a new module by clicking Insert > Module.
Sub ShowMessage()
MsgBox 'Hello, World!'
End Sub
Press F5 or go back to Excel, press Alt + F8, select ShowMessage, and click Run.
Sub EnterValue()
Range('A1').Value = 'Automated Entry'
End Sub
Sub LoopThroughRange()
Dim cell As Range
For Each cell In Range('A1:A10')
cell.Value = 'Processed'
Next cell
End Sub
Let’s dive into the decision-making structures in Excel VBA: IF and SELECT CASE.
IF Statement
Sub CheckValue()
Dim score As Integer
score = 75
If score >= 90 Then
MsgBox 'Grade: A'
ElseIf score >= 80 Then
MsgBox 'Grade: B'
ElseIf score >= 70 Then
MsgBox 'Grade: C'
Else
MsgBox 'Grade: F'
End If
End Sub
Sub CheckDay()
Dim dayOfWeek As String
dayOfWeek = 'Wednesday'
Select Case dayOfWeek
Case 'Monday'
MsgBox 'Start of the work week!'
Case 'Wednesday'
MsgBox 'Midweek already!'
Case 'Friday'
MsgBox 'Almost the weekend!'
Case Else
MsgBox 'Just another day.'
End Select
End Sub
Loop statement in VBA is used to repeat a block of code while a condition is true or until a condition becomes true.
Sub BasicDoLoop()
counter = 0
Do While counter < 10
counter = counter + 1
Debug.Print counter
Loop
End Sub
Sub DoLoopWithIf()
counter = 0
Do
counter = counter + 1
If counter Mod 2 == 0 Then
Debug.Print counter & ' is even'
Else
Debug.Print counter & ' is odd'
End If
Loop While counter < 10
End Sub
Sub DoLoopWithExit()
counter = 0
Do
counter = counter + 1
If counter == 5 Then
Exit Do
End If
Debug.Print counter
Loop While counter < 10
End Sub
Breakpoints
Purpose: Halt the execution of your code at a specific line.
Step Into (F8)
Purpose: Execute your code line by line.
Step Over (Shift+F8)
Purpose: Execute the current line and move to the next one.
Immediate Window
Purpose: Test code snippets and evaluate expressions on the fly.
Watch Window
Purpose: Monitor the values of variables.
Call for assistance
We will call you back