ListColumns.Add(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.