I need to loop through the entire word document and read highlighted text so that i can search the highlighted content in my XML file and replace it with the coresponding value in the XML file.
I have figured out how to parse my XML file into DOM and search for the value i need.
I still sort of the VBA code to loop through the entire word document and read the content of highlight text so that i can do the comparing with my xml file.
I need to loop through the entire word document and read highlighted text so
Share
This is the perfect solution for you. I have written this macro code and tested. http://blog.haneefputtur.com/2012/02/macro-to-extract-highlighted-words-from.html