Columns.Remove method (Outlook)

Removes the Column object specified by Index and resets the Table.

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

Columns Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.