Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Anpu Massri   on Feb 25 In MS Office Category.

  
Question Answered By: Albert Ellis   on Feb 25

First, you'll need a reference to the word  object model. Then I use this
code to add a document  based on a particular template:

Private Sub CommandButton1_Click()
Set mobjWordApp = New Word.Application
With mobjWordApp
.Visible = True
.WindowState = wdWindowStateMaximize
.Documents.Add Template:="C:\Case prep\standardackv4.dot"
End With
End Sub

You'll need .Documents.Open to use an existing document, I think.

Share: 

 
 
Didn't find what you were looking for? Find more on opening word document in excel Or get search suggestion and latest updates.


Tagged: