Share via


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.

Version Information

Version Added: Project 2010

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"