Columns Property (TableView Object)

The Columns property returns a single Column object or a Columns collection for this table view. Read-only.

Syntax

Set objColumns = objTableView.Columns

Set objColumn = objTableView.Columns(index)

objColumns
Object. The Columns collection of this table view.
objTableView
Required. The TableView object.
objColumn
Object. An individual Column object belonging to this table view's Columns collection.
index
Integer. An index into the table view's Columns collection.

Data Type

Object (Column or Columns collection)

Remarks

If a Column object is to be accessed with the index parameter, the value of index must be between 1 and the size of the TableView object's Columns collection. This size is available in the collection's Count property.

Although the Columns property itself is read-only, the collection it returns can be accessed in the normal manner through its Add method, and the properties on its member Column objects retain their respective read/write or read-only accessibility.