Columns.Remove Method

Outlook Developer Reference

Removes the Column object specified by

Index

and resets the Table.

Version Information
 Version Added:  Outlook 2007

Syntax

expression.Remove(Index)

expression   A variable that represents a Columns object.

Parameters

Name Required/Optional Data Type Description
Index Required Variant A 1-based index value that can be either a Long representing the column index for the Columns collection or a String representing the Name of the Column.

Remarks

The Remove method resets the Table by moving the current row to just before the first row of the Table. If, however, an invalid

Index

has been specified, then it will not remove any column or reset the Table.

Returns an error message if an invalid

Index

has been specified.

See Also