To do that, replace:
With ActiveDocument.Range
with:
Dim RngFnd As Range
Set RngMain = Selection.Range
With Selection.Range
and insert:
If Not .InRange(RngMain) Then Exit Sub
before:
If .Font.Bold = 9999999 Or .Font.Italic = 9999999 Then
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|