Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Opens the specified template as a document and returns a Document object.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function OpenAsDocument As Document
'Usage
Dim instance As Template
Dim returnValue As Document
returnValue = instance.OpenAsDocument()
Document OpenAsDocument()
Return Value
Type: Microsoft.Office.Interop.Word.Document
Remarks
Opening a template as a document allows the user to edit the contents of the template. This may be necessary if a property or method (the Styles property, for example) isn't available from the Template object.