Skip to content

Latest commit

 

History

History
60 lines (34 loc) · 1.49 KB

Project.Application.TableCopy.md

File metadata and controls

60 lines (34 loc) · 1.49 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.TableCopy method (Project)
vbapj.chm400
vbapj.chm400
project-server
Project.Application.TableCopy
90e0a546-2802-5ba7-6b49-086b32051451
06/08/2017
medium

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"

[!includeSupport and feedback]