Link to home
Start Free TrialLog in
Avatar of Keith McElroy
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","Text3"... "Text130")

for each tval in arrTextVals

    'question is how to code the following:
     worddoc.find(tval).replace(Add Bookmark(teal))

next
Avatar of Arana (G.P.)
Arana (G.P.)

ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.

Avatar of Keith McElroy

ASKER

Amazing,  Absolutely amazing.
I wish I could get better at the Microsoft Automation.
Great solution!