Yes you need a ref to Microsoft Word (X) Object Library and also a Word Template to place the bookmarks in
For your ref here's the whole code
Dim objWord As Word.Application
Dim doc As Word.Document
Dim objWordDoc As Object
Dim bolOpenedWord As Boolean
Dim Datex As String
Dim fname As String
Dim savePath As String
Dim NameForFile As String
Dim TxtOurRef As String
Dim TxtDate As String
Dim Fullname As String
Dim TxtAdLine1 As String
Dim PostCode As String
Dim Text110 As String ' Dear …
Dim TxtPara1 As String
Dim User As String
Dim TxtPossition As String
Dim ScreenName As String
Set objWord = New Word.Application
objWord.Visible = False
Set objWordDoc = objWord.Documents.Add(Template:="C:\MyTemplate.dot", NewTemplate:=False)
With objWordDoc.Bookmarks
.Item("TxtOurRef").Range.Text = Nz(Me.TxtOurRef)
.Item("TxtDate").Range.Text = Nz(Me.TxtDate)
.Item("Fullname").Range.Text = Nz(Me.Fullname)
.Item("TxtAdLine1").Range.Text = Nz(Me.TxtAdLine1)
.Item("PostCode").Range.Text = Nz(Me.PostCode)
.Item("ScreenName").Range.Text = Nz(Me.ScreenName)
.Item("Text110").Range.Text = Nz(Me.Text110)
.Item("TxtPara1").Range.Text = Nz(Me.TxtPara1)
.Item("User").Range.Text = Nz(Me.Caseworker)
.Item("TxtPossition").Range.Text = Nz(Me.TxtPossition)
End With
savePath = "C:\MyNewDoc"
'MsgBox savePath
Datex = Mid$(Now(), 1, 2) & Mid$(Now(), 4, 2) & Mid$(Now(), 9, 2)
'MsgBox Datex
NameForFile = Me.NameForFile
fname = "DocName " & Me.Fullname & "_" & NameForFile & "_" & Datex & ".doc"
'MsgBox fname
NameForFile = savePath & "\" & fname
'MsgBox NameForFile
'doc.Fields.Update
objWord.ActiveDocument.SaveAs NameForFile
'objWord.ActiveDocument.Close SaveChanges = False
'objWord.Quit
MsgBox "letter for " & Me.Fullname & " has been saved in:" & (Chr(13) & Chr(10)) & savePath
objWord.Visible = True
objWord.ActiveDocument.Activate