Can anyone help me change the coding to allow me to either use a dlook up or collect the Address information from a form
Dim WordObj As Word.Application
Dim WordDoc As Word.Document
Dim WordRange As Word.Range
Set WordObj = CreateObject("Word.Application")
Set WordDoc = WordObj.Documents.Open _
("C:\Documents and Settings\Compaq_Owner\My Documents\Dee\Houses\SET UP DOCS\Housing Benefit Authorisation Form May 2011.docx")
WordObj.Visible = True
' Go to the bookmark named "Address"
Set WordRange = WordDoc.Goto(What:=wdGoToBookmark, Name:="Address")
WordRange.InsertAfter "66 Alexandra Road"
Many thanks for your help
neill
Dim WordObj As Word.Application
Dim WordDoc As Word.Document
Dim WordRange As Word.Range
Set WordObj = CreateObject("Word.Application")
Set WordDoc = WordObj.Documents.Open _
("C:\Documents and Settings\Compaq_Owner\My Documents\Dee\Houses\SET UP DOCS\Housing Benefit Authorisation Form May 2011.docx")
WordObj.Visible = True
' Go to the bookmark named "Address"
Set WordRange = WordDoc.Goto(What:=wdGoToBookmark, Name:="Address")
WordRange.InsertAfter "66 Alexandra Road"
Many thanks for your help
neill