mikke3141
10-14-2014, 05:22 AM
Hello,
I have created a bunch of word documents which are populated with excel macro. I have used bookmarks and InsertAfter.
docWord.Bookmarks("mybookmark").Range.InsertAfter "my text"
InsertAfter I have used as people can write new values on top of the bookmarks and at the same time remove accidentally the bookmark.
myresult = docWord.Bookmarks("mybookmark").Next(Unit:=wdWord, Count:=1).Range
Now I'm trying to retriew the value that was populated into the Word document, but no luck yet. How can I fix this?
Thank you for your help.
I have created a bunch of word documents which are populated with excel macro. I have used bookmarks and InsertAfter.
docWord.Bookmarks("mybookmark").Range.InsertAfter "my text"
InsertAfter I have used as people can write new values on top of the bookmarks and at the same time remove accidentally the bookmark.
myresult = docWord.Bookmarks("mybookmark").Next(Unit:=wdWord, Count:=1).Range
Now I'm trying to retriew the value that was populated into the Word document, but no luck yet. How can I fix this?
Thank you for your help.