Project.Template Property

Project Developer Reference

Returns the name of the template associated with a project. Read-only String.

Syntax

expression.Template

expression   A variable that represents a Project object.

Example
The following example creates a new project based on the template of the active project, if the active project was previously created from a Microsoft Office Project 2007 template file (.mpt).

Visual Basic for Applications
  Sub CreateNewProject()
    FileOpen ActiveProject.Template & ".mpt"
End Sub

See Also