> To make F&R ignore deleted text you need to make it hidden, something like
> this ...
[quoted text clipped - 9 lines]
>
> ' Do your Replace here
Also an important distinction is that Selection.Find does not seem to work
with TextRetrievalMode.
You must use Range.Find. Something like this macro will delete everything
except hidden text.:
Sub Macro13()
Dim aRange As Range
ActiveDocument.Range.TextRetrievalMode.IncludeHiddenText = False
Set aRange = ActiveDocument.Content
With aRange.Find
.Font.hidden = False
.Text = ""
.Replacement.Text = ""
.Execute Replace:=wdReplaceAll
End With
End Sub
> ' Reset to user's option, saved above
> Options.DeletedTextMark = DeletedTextOption
[quoted text clipped - 16 lines]
>> I have tried limiting finds for black text or font style normal...that
>> doesn't work.

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
Russ - 09 Sep 2006 22:42 GMT
Oops,
>> To make F&R ignore deleted text you need to make it hidden, something like
>> this ...
[quoted text clipped - 11 lines]
> Also an important distinction is that Selection.Find does not seem to work
> with TextRetrievalMode.
Selection.Find does work as long the Show/Hide Button isn't hiding the text
like:
ActiveWindow.ActivePane.View.ShowAll = False
Before doing a selection find. That doesn't seem to matter when using a
range find.
> You must use Range.Find. Something like this macro will delete everything
> except hidden text.:
[quoted text clipped - 34 lines]
>>> I have tried limiting finds for black text or font style normal...that
>>> doesn't work.

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID