Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2005

Tip: Looking for answers? Try searching our database.

search backwards

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SF - 17 Sep 2005 02:41 GMT
When I search for a word in a very large document, I may find it several
times in several different places. Sometimes I want to go back to the
previous instance of that word and check something. But backing up requires
several steps in the regular search box and then I have to undo those steps
to go forward again. Is there a small bit of code that I can put in a macro
to go back to the last instance with one click?

Thanks
SF - 17 Sep 2005 03:25 GMT
Okay, I recorded a macro to find a string and fiddled with it until I came
up with this:

Sub FindBack()
   Selection.Find.Forward = False
   Selection.Find.Execute
   Selection.Find.Forward = True
End Sub

It works, but I'm not sure if it's the best way.

> When I search for a word in a very large document, I may find it several
> times in several different places. Sometimes I want to go back to the
[quoted text clipped - 4 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.