Columns Collection Methods: Add 

Purpose

Adds an object to the Columns collection.

Syntax

The Add method has the syntax:

Add (Variant vaWhat)

Returns

type Object

Description

The Add method adds an object to the Columns collection and returns the new object.

Legal types for the parameter vaWhat are:

Type

Description

Object that does not equal nothing.

An already-existing object is added. This object must be a Column object. This variant type is used to display the same column more than once.

Object that equals nothing, VT_EMPTY or VT_ERROR

A new Column object is created and added to the collection.