Application.VisualReportsNewTemplate method (Project)

Creates a Visual Reports template for Microsoft Excel or Microsoft Visio.

Syntax

expression. VisualReportsNewTemplate( _PjVisualReportsTemplateType_, _PjVisualReportsCubeType_, _ReportAlLFields_, _PjVisualReportsDataLevel_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
PjVisualReportsTemplateType Optional Long Template type. Can be one of the PjVisualReportsTemplateType constants. Default is pjExcel.
PjVisualReportsCubeType Optional Long Cube type. Can be one of the PjVisualReportsCubeType constants. Default is pjTaskTP.
ReportAlLFields Optional Boolean If True, all noncustom fields are included in the report.
PjVisualReportsDataLevel Optional Long Data level. Can be one of the PjVisualReportsDataLevel constants. Default is pjLevelAutomatic.

Return value

Boolean

Remarks

Setting the ReportAllFields parameter to True can degrade performance.

The PjVisualReportsDataLevel parameter specifies the level to which the timephased data can be accessed. For example, if pjLevelMonths (months) is specified, it not possible to access pjLevelDays (days).

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.