Hi all, I've trying to merge some data into a word document, the word document is created by the user and uses bookmarks to know where to replace certain bits of data. The problem is that if there is nothing to put in that bookmark position the bookmark text that is already there is not replaced.
Here is my code...
Code:If objWord.ActiveDocument.Bookmarks.Exists("deliverynotes") = True Then objWord.ActiveDocument.Bookmarks("deliverynotes").Select() objWord.Selection.TypeText(txtDeliveryNotes.Text) End If


LinkBack URL
About LinkBacks
Reply With Quote