Application.TableCopy method (Project)
Makes a copy of the active table, adds it to the Tables drop-down menu, and sets the view to use the new table.
expression. TableCopy
( _Name_
)
expression An expression that returns an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Name | Optional | String | Name of the copied table. |
Boolean
The Tables drop-down menu is on the View tab on the ribbon. If you run the TableCopy method without specifying the Name argument, Project displays the Save Table dialog box.
참고
The TableCopy action is not stored in the Undo list.
For detailed control of table features when making a copy, see the TableEditEx method.
If the active view is the Resource Sheet, the following statement copies the resource Entry table to a table named "Copy of Resource Sheet table" and then sets the Resource Sheet view to use that table.
TableCopy Name:="Copy of Resource Sheet table"
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.