A simple (I wish) matter.All I need is to have LS go to a bookmark location in a word document and then insert the contents of another Word file.
It’s the only thing I can’t get to work on my current project.
Anyone got a code snippet?
Collin
A simple (I wish) matter.All I need is to have LS go to a bookmark location in a word document and then insert the contents of another Word file.
It’s the only thing I can’t get to work on my current project.
Anyone got a code snippet?
Collin
Subject: Ole and word and filemerge, anyone?
I can help you with the bookmark part!Here’s a part from a “merge” using bookmarks that I’d figured out awhile back. (We actually never used it, my users create merge fields instead, but I had this just in case they used bookmarks.)
This is set up in the chance they have a more than one bookmark of the same name, just with a different reference number, ie casetitle, casetitle1, casetitle2, casetitle3. I believe bookmarks do not let you set more than one with a name which is where the 1,2,3 comes in.
Hope this helps!!
num = 0
ext$ = “”
nam$ = “CaseTitle” + ext$
While wordobj.Bookmarks.Exists(nam$) = True
wordobj.Bookmarks(nam$).Select
wordobj.FormFields(nam$).Result = casetitle
num = num + 1
ext$ = Cstr(num)
nam$ = “CaseTitle” + ext$
Wend