Template Property [Visio 2003 SDK Documentation]
Returns the name of the template from which the document was created.
strRet = object**.Template**
strRet String. The name of the template from which the Document object was created.
object Required. An expression that returns a Document object.
Version added
4.0
Remarks
If the document is based on no template, the Template property returns an empty string (''").
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to use the Template property to get the name of the template from which the document was created.
Public Sub Template_Example()
Dim strTemplateName As String
strTemplateName = ThisDocument.Template
'Verify that the proper string was returned.
Debug.Print strTemplateName
End Sub
Applies to | Document object