To create a new document that uses a specific template, use this: : Word Document « Word « VBA / Excel / Access / Word

Home
VBA / Excel / Access / Word
1.Access
2.Application
3.Data Type
4.Data Type Functions
5.Date Functions
6.Excel
7.File Path
8.Forms
9.Language Basics
10.Math Functions
11.Outlook
12.PowerPoint
13.String Functions
14.Windows API
15.Word
16.XML
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
VBA / Excel / Access / Word » Word » Word Document 
To create a new document that uses a specific template, use this:
 
Sub add()
    Dim wdApp As Word.Application
    
    Set wdApp = GetObject("Word.Application")

    wdApp.Documents.Add Template:="Contemporary Memo.dot"
End Sub

 
Related examples in the same category
1.Add a word document
2.Open an Existing Document
3.Save Changes to a Document
4.To save a document with a new name, use the SaveAs method
5.To close a specific document, you can close the active document or you can specify a document name:
6.Save a document
7.Generating Word 2000 data from an Excel VBA program
8.Load contact table from Access and create letter in Word
9.Close a document
java2s.com  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.