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

Document.Template Property (Visio)

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

Returns the name of the template from which the document was created. Read-only.

Syntax

expression . Template

expression A variable that represents a Document object.

Return Value

String

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
© 2017 Microsoft