Get in Touch

Course Outline

Excel Object Model

  • Protecting sheets from VBA
  • Workbook object and Workbooks collection
  • Worksheet object and Worksheets collection
  • Sheet validation
  • Practical methods of the Range object
  • Copy, paste, and paste special
  • CurrentRegion property
  • Find and replace
  • Sorting ranges
  • Charts (Chart object)

Events

  • Application-level events

Arrays

  • Dynamic arrays
  • Variant array tables
  • Optimising arrays and memory
  • Multi-dimensional arrays

Object-Oriented Programming

  • Classes and objects
  • Creating classes
  • Creating and destroying objects
  • Creating methods
  • Creating properties
  • Validating data using properties
  • Default properties and methods
  • Error handling in class modules

Creating and managing collections

  • Creating a collection
  • Adding and removing items
  • References to components (using a key and an index)

Advanced VBA structures and functions

  • Passing parameters by value and by reference (ByRef and ByVal)
  • Procedures with a variable number of parameters
  • Optional parameters and defaults
  • Procedures with an unknown number of parameters (ParamArray)
  • Enumeration for convenient parameter passing
  • User-defined types
  • Null, Nothing, empty string "", Empty, and 0
  • Type conversion

File Operations

  • Opening and closing text files
  • Reading and writing text and binary data
  • Processing records in CSV files
  • Efficient processing of text files

Using VBA functions in other applications

Extras

  • Creating custom add-ins
  • Creating toolbars for add-ins
  • Installing custom add-ins and protecting them

Using external libraries

Connecting to external databases (ODBC, OLEDB)

 14 Hours

Testimonials (7)

Related Categories