Columns.Add Method
PowerPoint Developer Reference |
Adds a new column to an existing table. Returns a Column object that represents the new table column.
Syntax
expression.Add(BeforeColumn)
expression A variable that represents a Columns object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
BeforeColumn | Optional | Long | The index number that specifies the table column before which the new column will be inserted. |
Return Value
Column
Remarks
The value of the BeforeColumn parameter must be between 1 and the number of columns in the table, inclusive. The default value is -1, which means that if you omit the BeforeColumn parameter, the new column is added as the last column in the table.
See Also