Microsoft Excel VBA
1-2 days

Course overview
On this course delegates will learn how to record and edit macro code, and to control Excel using the Visual Basic for Applications programming language. Delegates will be able to design, write and debug macros, create a dialog box and control structures, and create custom Excel functions.

Who should attend
This course is aimed at experienced Excel users who have no previous VBA experience.


Course contents (1 day)

Macros
What is a Macro?
Recording Macros
Running Macros from Shortcut Keys
Running Macros from Toolbar Buttons
Running Macros from Worksheet Buttons

The Visual Basic Editor
Viewing Code
The Personal Macro Workbook
Modules and Procedures

Understanding and Editing Code
Code Layout
Comments or Remarks
Object Methods and Properties
Keeping Code Tidy
Toggling Code
Absolute and Relative References
Variables and Variable Declaration
Data Types

Exploring Code
The Object Browser
Testing code in the Immediate Window

Interactive Control Structures
The Inputbox function
The Msgbox statement and function




Controlling the flow of code
Using the If Statement for Decision Making
The Select Case Statement
Looping Structures
Do Until and While
For Next and For Each

Handling Errors
Using Line Labels
The On Error, Goto and Resume Key Words
Trapping Errors
Setting Break Points and Stepping
Using the Locals and Watch Windows

Function Procedures
Creating Function Procedures
Using on a worksheet
Using with Code

 

Course contents (2 days)

Topics listed for the 1 day course
User Designed Forms
Different scopes for variables
Creating complex tasks
Workshop session on an application that delegates would like to develop (or we will provide examples)

 

Related courses
Microsoft Excel 2007 Advanced
Microsoft Excel 2003 Advanced

How to book
Please call us now on 020 8658 6994 or email us at admin@alphatraining.com

Home



© Alpha Training, Telephone +44 (0)20 8658 6994, Email admin@alphatraining.com