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.

Syntax

expression. TableCopy( _Name_ )

expression An expression that returns an Application object.

Parameters

Name Required/Optional Data type Description
Name Optional String Name of the copied table.

Return value

Boolean

Remarks

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.

Note

The TableCopy action is not stored in the Undo list.

For detailed control of table features when making a copy, see the TableEditEx method.

Example

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"

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.