ARGH! Doug, help!

M

M

Well I spoke too soon.
I am never getting out of this loop, it should only be
coming up with three instances but it doesnt ever return a
False:

With oWordRange.Find
.ClearFormatting()
Do While .Execute(FindText:="[#string#]", _
MatchCase:=False, _
MatchWholeWord:=False, _
Forward:=True) = True
iCounter += 1
Loop
End With
 
D

Doug Robbins - Word MVP

The code that I gave you works fine for me.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
Top