I want to search UP only

  • Thread starter Thread starter gml
  • Start date Start date
G

gml

I need a macro that searches up only. I.e., I don't want to have to
go into the More tab, then the Search tab, then select Up to search.

Your assistance is appreciated.

George Lutz
845 North Park Road
Wyomissing, PA 19610
 
Try this,

Selection.Find.ClearFormatting
With Selection.Find
.Text = "test"
.Replacement.Text = ""
.Forward = False
End With
Selection.Find.Execute
In the above macro, 'Forward' sets the direction.

HTH,
 
Back
Top