H
hafabee
I have some VBA code that loops through a range word by word looking
for some specific words.
I want to ignore a word if is part of the name of a MERGEFIELD, but I
cannot figure out how to do it.
I *have* figured out how to exclude urls and emails.
Here is the skeleton of my current code:
For Each rngWord In rngLookat.Words
If rngWord.Hyperlinks.Count = 0 then
If StrComp(LCase(Trim(rngWord.Text)), "status") = 0 then
' Do what I do
End If
End If
Next rngWord
I would like to ignore the word if it part of a MERGEFIELD name, such
as MEMBER_STATUS.
Any ideas would be appreciated.
for some specific words.
I want to ignore a word if is part of the name of a MERGEFIELD, but I
cannot figure out how to do it.
I *have* figured out how to exclude urls and emails.
Here is the skeleton of my current code:
For Each rngWord In rngLookat.Words
If rngWord.Hyperlinks.Count = 0 then
If StrComp(LCase(Trim(rngWord.Text)), "status") = 0 then
' Do what I do
End If
End If
Next rngWord
I would like to ignore the word if it part of a MERGEFIELD name, such
as MEMBER_STATUS.
Any ideas would be appreciated.