Application.CopyReport method (Project)

Makes a copy of the active report to the clipboard.

Syntax

expression. CopyReport

expression A variable that represents an Application object.

Return value

Boolean

True if the CopyReport method is successful.

Remarks

You can paste the copied report into another application, such as Word, Excel, or PowerPoint. The CopyReport method corresponds to the Copy Report command on the DESIGN tab of the REPORT TOOLS ribbon.

The CopyReport method does not apply to views, such as the following:

  • Calendar

  • Gantt Chart

  • PERT Chart (Network Diagram)

  • Resource Form

  • Resource Sheet

  • Resource histogram

  • Resource Usage

  • Task Form

  • Task Sheet

  • Task Usage

  • Timeline

If you use the CopyReport method on a view that is not supported, Project shows run-time error 1100, Application-defined or object-defined error.

See also

Reports.Item

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.