R
Razi Mohiuddin
I need to search for "fred" or "red". How do I do it?
It seems like f{0,1}red does not work - because 0
occurences are not permissible.
So is there another way to do this?
(fred)|(red) or something similar?
Selection.Find.ClearFormatting
With Selection.Find
.Text = "f{0,1}red"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Find.Execute
It seems like f{0,1}red does not work - because 0
occurences are not permissible.
So is there another way to do this?
(fred)|(red) or something similar?
Selection.Find.ClearFormatting
With Selection.Find
.Text = "f{0,1}red"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Find.Execute