This is from some code I use - I stripped out the code that takes info from the current record displayed on a form to populate the word.doc . hope it helps.
Private Sub CmdOpenWordDoc_Click()
On Error GoTo ErrorHandler
Dim appWord As Word.Application
Dim docs As Word.Documents
Dim strLetter As String
Dim strTemplateDir As String
Dim strDate As String
Dim Obgor As String
Set appWord = GetObject(, "Word.Application")
strDate = CStr(Date)
Rem OPTIONAL - change path from user template dir and force to a controlled location if there is a special template required:
strTemplateDir = "C:\path\"
strLetter = strTemplateDir & "yourtemplatename.dot"
Set docs = appWord.Documents
docs.Add strLetter
With appWord
.Visible = True
.Activate
.Selection.WholeStory
.Selection.Fields.Update
.Selection.MoveDown Unit:=wdLine, Count:=1
.ActiveDocument.Protect wdAllowOnlyFormFields
End With
ErrorHandlerExit:
Exit Sub
ErrorHandler:
If Err = 429 Then
'Word is not running; open Word with CreateObject
Set appWord = CreateObject("Word.Application")
Resume Next
Else
MsgBox "Error No: " & Err.Number & "; Description: " & Err.Description
Resume ErrorHandlerExit
End If
End Sub