Keith McElroy
asked on
VBA Microsoft Word: replace text with a Bookmark
Microsoft Word VBA or VB Script
Find specific text and replace with a Bookmark by the name in the text
arrTextVals = Array("Text1","Text2","Tex t3"... "Text130")
for each tval in arrTextVals
'question is how to code the following:
worddoc.find(tval).replace (Add Bookmark(teal))
next
Find specific text and replace with a Bookmark by the name in the text
arrTextVals = Array("Text1","Text2","Tex
for each tval in arrTextVals
'question is how to code the following:
worddoc.find(tval).replace
next
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In today's version. I have left the pilot text (Text1, etc) in place in the document. If you want it removed, use the original version.
ASKER
Amazing, Absolutely amazing.
I wish I could get better at the Microsoft Automation.
Great solution!
I wish I could get better at the Microsoft Automation.
Great solution!
https://www.experts-exchange.com/questions/28247789/Word-VBA-replace-text-string-with-bookmarks.html