Application.VisualReportsEdit method (Project)

Opens the default or a specified Visual Reports template for editing.

Syntax

expression. VisualReportsEdit( _strVisualReportTemplateFile_, _PjVisualReportsDataLevel_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
strVisualReportTemplateFile Optional String Full path and the name of template file.
PjVisualReportsDataLevel Optional Long Data level for the template. Can be one of the PjVisualReportsDataLevel constants. The default is pjLevelAutomatic.

Return value

Boolean

Remarks

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).

Example

The following example opens the "MyTemplate.xlt" template, with a data level of months.

Application.VisualReportsEdit("C:\MyTemplate.xlt", pjMonths)

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.