HowdeeDoodee
Technical User
I have a library of e-documents I need to convert to another format. In each of the documents I have words in blue font. The groups of blue words can be any length, from 1 word up to 100 words or more. I need a way to loop a vba word macro so the macro selects the groups of blue words and puts a beginning tag and an ending tag around the group of blue words. The ending tag would equal xxx and the beginning tag would equal yyy.
The following code only finds individual characters in individual words which is not what I need.
Thank you in advance for your reply.
The following code only finds individual characters in individual words which is not what I need.
Code:
Selection.Find.ClearFormatting
With Selection.Find
.Text = "?"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
.Font.Color = wdColorBlue
End With
Selection.Find.Execute
Thank you in advance for your reply.