Columns.Add method (PowerPoint)
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
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.