Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Word Template, create new document

Status
Not open for further replies.

markphsd

Programmer
Jun 24, 2002
758
0
0
US
How do i open a word template and create a new document from it?

There's like 20 parameters when opening a word.application
.documents.open(,,,,,,......

Mark P.
Providing Low Cost Powerful Point of Sale Solutions.
 
You could try...

Dim wdMyApp As Word.Application
Dim wdMyDoc As Word.Document

Set wdMyApp = New Word.Application

Set wdMyDoc = wdMyApp.Documents.Add("[Pathway here to your template]")

wdMyApp.Documents(wdMyDoc).Activate 'Make the word doc Active

'
'
'Do whatever you need to do with the document
'
'

Set wdMyApp = Nothing
Set wdMyDoc = Nothing
 
actuall i had that part, and i got what i needed done, which was kind of:

.Documents.ADD(FileName, False, 0, True)

Mark P.
Providing Low Cost Powerful Point of Sale Solutions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top