Microsoft Excel 2007
Visual Basic For Applications
Duration 2 days

The skills and knowledge acquired in this course are sufficient to be able to create VBA applications within Excel.
For an Acrobat format PDF of the course outline, click here.

Recorded Macros

  1. Understanding Excel Macros
  2. Setting Macro Security
  3. Saving A Document As Macro Enabled
  4. Recording A Simple Macro
  5. Running A Recorded Macro
  6. Relative Cell References
  7. Running A Macro With Relative References
  8. Viewing A Macro
  9. Editing A Macro
  10. Assigning A Macro To The Toolbar
  11. Running A Macro From The Toolbar
  12. Assigning A Keyboard Shortcut To A Macro
  13. Deleting A Macro
  14. Copying A Macro
  15. Tips For Developing Macros

Recorder Workshop

  1. Preparing Data For An Application
  2. Recording A Summation Macro
  3. Recording Consolidations
  4. Recording Divisional Macros
  5. Testing Macros
  6. Creating Objects To Run Macros
  7. Assigning A Macro To An Object

Understanding VBA

  1. VBA Terminology
  2. About Objects
  3. Accessing The Excel Object Model
  4. Using The Immediate Window
  5. Working With Object Collections
  6. Setting Property Values
  7. Working With Worksheets
  8. Using The Object Browser
  9. Programming With The Object Browser

Using The VBA Editor

  1. The VBA Editor
  2. Opening And Closing The Editor
  3. Working With The Project Explorer
  4. Working With The Properties Window
  5. Working With The Work Area
  6. Working With A Code Module
  7. Setting Breakpoints In The Editor
  8. Stepping Through A Procedure

Procedures

  1. About Procedures
  2. Creating A Command Procedure
  3. Making Sense of IntelliSense
  4. Using The Edit Toolbar
  5. Commenting Statements
  6. Indenting Code
  7. Bookmarking In Procedures

Using Variables

  1. Understanding Variables
  2. Creating And Using Variables
  3. Implicit And Explicit Declarations
  4. The Scope Of Variables
  5. Procedure Level Scoping
  6. Module Level Scoping
  7. Passing Variables By Reference
  8. Passing Variables By Value
  9. Data Types
  10. Declaring Data Types
  11. Using Arrays

User Defined Functions

  1. About Functions
  2. Creating Simple User-Defined Functions
  3. Using User-Defined Functions
  4. Using Multiple Arguments
  5. Modifying A Function
  6. Creating A Function Library

Using Excel Objects

  1. Application Methods And Properties
  2. Workbook Methods And Properties
  3. Viewing Excel And The Editor Together
  4. Using Workbook Objects
  5. Worksheets Methods And Properties
  6. Using Worksheet Objects
  7. Range Methods And Properties
  8. Using Range Objects
  9. Using Objects In A Procedure

Programming Techniques

  1. The MsgBox Function
  2. Sending Messages To The User
  3. InputBox Techniques
  4. Using The InputBox Function
  5. Using The InputBox Method
  6. The If Statement
  7. Using If For Single Conditions
  8. Using If For Multiple Conditions
  9. The Select Case Statement
  10. Using The Select Case Statement
  11. For Loops
  12. Looping With Known Or Specified Iterations
  13. The Do…Loop Statement
  14. Looping With Unknown Iterations

Creating Custom Forms

  1. About Custom Forms
  2. Creating A Custom Form
  3. Adding Text Boxes To A Form
  4. Changing Text Box Control Properties
  5. Adding Label Controls To A Form
  6. Adding A Combo Box Control
  7. Adding Option Buttons
  8. Adding Command Buttons
  9. Running A Custom Form

Programming UserForms

  1. Handling Form Events
  2. Initialising A Form
  3. Closing A Form
  4. Project Transferring Data From A Form
  5. Running Form Procedures
  6. Creating Error Checking Procedures
  7. Running A Form From A Procedure
  8. Creating Quick Access Toolbar Buttons

Automatic Startup

  1. Programming Automatic Procedures
  2. Running Automatic Procedures
  3. Automatically Starting A Workbook

Error Handling

  1. Error Types
  2. The On Error Statement
  3. Creating A Simple Error Handler
  4. Using The Resume Statement
  5. Using Decision Structures In Error Handlers
  6. Using The Err Object
  7. Error Handling In Event Procedures
  8. Defining Custom Errors