9 Microsoft Excel VBA 2 Day Training Course

£ 790.00 

Two-Day Course



Course Outline - Day One

Basics

Recap Recording Macros

Absolute and Relative Cell Referencing

Running Macros – shortcut keys, worksheet and toolbar buttons

The VB Editor


Creating Macros without using the Recorder

Module Sheets, Procedures: subroutines


Stepping through and Debugging Macros

Stepping in, out and over subroutines

Setting Breakpoints

Immediate, Locals and Watch windows


Variables and Constants

Data Types

Declaring Variables

Scope and Lifetime

Option Explicit


Objects, Methods and Properties

Collections

Containers and Object Hierarchy

Properties

Methods and Method Arguments

With…End With Statement


If Statements

Select Case Statement


Input and Message Boxes


Loops

Do Loops

For...Next Loops


Arrays

Object Collections

For…Each Loops


Manipulating the Range Object

Charts and ChartObjects

PivotTables


Functions

VB Functions

Manipulating Strings

Accessing Excel’s Worksheet Functions

User Defined Functions

Defining Arguments in Function Procedures


Defining Arguments in Subroutines


Error Handling

Trapping Errors

Resume and Resume Next

Creating an Error Handler


Event Procedures


Creating Add-Ins

Creating Add-In Applications

Password-Protecting the Project


Userforms

Designing Userforms

Adding Controls

Userform events and Code

Running Userforms


Additional Subjects:

Programmatically manipulating Commandbars

More complex Userforms

Working with the File System

Automation

- Word

- Access DAO/ADO



Course Outline - Day Two

Exploring the Object Models of the Office Products

Figuring Out Object Models
Working with the Object Browser
Knowing the Interactive Product
Mining the Help



Working with Active Objects

Active Properties in Office
Excel’s Active and Selection Properties
Word’s Active and Selection Properties
The Access Screen Object


Using Another Product's Features with Automation

Overview of Using Automation
Getting to the Object Model
Working with Data Using Automation


Advanced User Form Techniques

Restricting User Entry
Using List Boxes and Combo Boxes
Creating a Tabbed Dialog Box
Additional ActiveX Controls


Techniques with VBA Variables

Scope, Lifetime, and Precedence
Passing by Value and by Reference
Optional Arguments
Creating Your Own Collections


Adding Data to Excel

Using VBA to Work with Data
Adding Values to an Excel Worksheet
Adding ADO Data to Excel


Charting Your Data

Excel’s Chart Object
Creating a Chart
Creating an Excel Chart from Access


Giving Your Solutions to Others

Sharing the Wealth
Using Custom Toolbars
Office Templates and Add-Ins
Securing Your Code