Hello,
I'm obviously doing something stupid and I can't spot it, please can you tell me why the bookmarks text part higlighted is erroring with property or method is not supported error.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
I'm obviously doing something stupid and I can't spot it, please can you tell me why the bookmarks text part higlighted is erroring with property or method is not supported error.
Code:
'open template and add information pre-merge
Set wordApp = CreateObject("Word.Application")
'Open document
wordApp.Documents.Open cDrive & "\mypath\mydoc.Doc"
'update bookmark with text
With wordApp.ActiveDocument
.Bookmarks("Info").Select
[b].Selection.TypeText Me!Info[/b]
'quit / save
.Quit SaveChanges:=wdSaveChanges, OriginalFormat:=wdWordDocument
End With
Set wordApp = Nothing
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!