ListColumns object (Excel)

A collection of all the ListColumn objects in the specified ListObject object.

Remarks

Each ListColumn object represents a column in the table.

Note

A name for the column is automatically generated. You can change the name after the column has been added.

Example

Use the ListColumns property of the ListObject object to return the ListColumns collection.

The following example adds a new column to the default ListObject object in the first worksheet of the workbook. Because no position is specified, a new rightmost column is added.

Set myNewColumn = Worksheets(1).ListObject(1).ListColumns.Add

Methods

Properties

See also

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.