Project.Template property (Project)
Gets the name of the template associated with a project. Read-only String.
Syntax
expression.Template
expression A variable that represents a Project object.
Remarks
If the project was not created from a template, the Template property returns an empty string ("").
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 Project template file (.mpt).
Sub CreateNewProject()
FileOpen ActiveProject.Template & ".mpt"
End Sub
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.