Find "Previous" or "Backwards"

F

Fred Holmes

Word 2003. Windows XP

The Word find dialog only has "Find Next". There doesn't seem to be
any way to "Find Prvious" or whatever command to search/find backwards
through the document.

Is there any way to do this with some VBA code? It should be hooked
to the current Find process. I.E. One Keyboard shortcut would "find
next" and another would "find previous."

I'm looking for a way to go directly back to the prior hit, or second
prior hit, but then proceed forward again. A locked loop to go
through the entired document in the bacwards direction only isn't
really helpful.

Thanks for any help.

Fred Holmes
 
D

Dave Lett

Hi Fred,

Well, there is a "previous".

With Selection.Find
.Text = "Test"
.Forward = False
.Execute
End With

If, however, you've already run your first find operation, you can use

Application.Browser.Next
and
Application.Browser.Previous

HTH,
Dave

Selection.Browser.Next
 

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