H
hafabee
I have a routine that loops through all the words in a doc (For Each
objWord In objPara.Range.Words) looking for certain words.
I want to ignore merge field names. Right now, the routine is picking
up each "word" of the merge field name. For example, if the merge name
is "«First_Name»" my routine is picking up the words "«" "First"
"_" "Name" and "»".
Is there any way to tell if a given range (such as "First" in the
above example) is within a merge field? Or, even better, is there any
way to somehow hide all merge fields at the start of my routine?
Thanks in advance for any advice you may have.
objWord In objPara.Range.Words) looking for certain words.
I want to ignore merge field names. Right now, the routine is picking
up each "word" of the merge field name. For example, if the merge name
is "«First_Name»" my routine is picking up the words "«" "First"
"_" "Name" and "»".
Is there any way to tell if a given range (such as "First" in the
above example) is within a merge field? Or, even better, is there any
way to somehow hide all merge fields at the start of my routine?
Thanks in advance for any advice you may have.