ListColumns.Add(Object) Method

Definition

Adds a new column to the list object. Returns a ListColumn object.

public Microsoft.Office.Interop.Excel.ListColumn Add (object Position);
Public Function Add (Optional Position As Object) As ListColumn

Parameters

Position
Object

Optional Object. Specifies the relative position of the new column that starts at 1. The previous column at this position is shifted outward.

Returns

Remarks

If Position is not specified, a new rightmost column is added. A name for the column is automatically generated. The name of the new column can be changed after the column is added.

Applies to