I want to search UP only

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
 
P

Pranav Vaidya

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top