Tables.Add method (Project)
Adds a Table object to a Tables collection.
Syntax
expression.Add (Name, Field, Task)
expression A variable that represents a 'Tables' object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Name | Required | String | The name of the table. |
Field | Required | Long | The name of the field. Can be one of the PjField constants. |
Task | Optional | Boolean | True if the table being added is a task table. The default value is True. |
Return value
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.