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 / Long Documents / October 2004

Tip: Looking for answers? Try searching our database.

Find/Replace problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrea - 01 Oct 2004 15:56 GMT
I've got a long document that i use the find/replace to
find names in.  after i find the name i close find, delete
the page, then control-f to open the find window again and
move onto the next name.  (i use keyboard shortcuts and
page-delete macro to do all this) after doing this a few
times the note 'search down' appears.  i know how to turn
it off but i want to know *why* it keeps changing on me
automatically.  Can anyone help?
Doug Robbins - 02 Oct 2004 13:08 GMT
If it is the same name that you are looking for each time and you want to
delete all of the pages on which that name appears, the following macro will
ask you for the name and then do it all for you:

Dim findname As String, namepage As Range
findname = InputBox("Enter the Name that you are looking for.", "Page
Deleter")
Selection.HomeKey wdStory
Selection.Find.ClearFormatting
With Selection.Find
   Do While .Execute(FindText:=findname, Wrap:=wdFindContinue,
Forward:=True) = True
       Set namepage = Selection.Range.Bookmarks("\page").Range
       namepage.Delete
   Loop
End With

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> I've got a long document that i use the find/replace to
> find names in.  after i find the name i close find, delete
[quoted text clipped - 4 lines]
> it off but i want to know *why* it keeps changing on me
> automatically.  Can anyone help?
Klaus Linke - 06 Oct 2004 05:45 GMT
Andrea,

And for "why": Word changes from searching "all" to "down" if you have
something selected before you start the search.

In that case, Word initially only searches the selection. When it has
finished, it'll ask you whether it should search the rest of the document.

BTW, nice keyboard shortcuts to find the next/previous occurrence without
opening the dialog again are Ctrl+PageDown ( = BrowseNext)  and Ctrl+PageUp
(= BrowsePrevious).
The blue double arrows below the vertical scoll bar (to the right of the
document) serve the same purpose if you prefer the mouse.

Regards,
Klaus

> I've got a long document that i use the find/replace to
> find names in.  after i find the name i close find, delete
[quoted text clipped - 4 lines]
> turn it off but i want to know *why* it keeps changing
> on me automatically.  Can anyone help?
 
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.