Table of contents
TOC
Collapse the table of content
Expand the table of content

ReportTemplate.TemplateType Property (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets the Visual Report template type. Read-only PjVisualReportsTemplateType.

Syntax

expression. TemplateType

expression A variable that represents a ReportTemplate object.

Remarks

The TemplateType property can be one of the PjVisualReportsTemplateType constants.

Example

The following example lists all of the Visual Report template types and files for the current user.

Sub ListTemplatePaths() 

 Dim templateList As String 

 Dim typeOfTemplate As String 

 Dim template As ReportTemplate 



 For Each template In Application.VisualReportTemplateList 

 Select Case template.TemplateType 

 Case pjExcel 

 typeOfTemplate = "Excel" 

 Case pjVisioMetric 

 typeOfTemplate = "Visio Metric" 

 Case pjVisioUS 

 typeOfTemplate = "Visio U.S." 

 Case Else 

 End Select 



 templateList = templateList &; vbCrLf &; typeOfTemplate &; ": " _ 

 &; template.TemplatePath 

 Next template 



 MsgBox "Visual Reports Templates:" &; templateList 



End Sub

See also

Concepts

ReportTemplate Object

© 2018 Microsoft