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 / October 2005

Tip: Looking for answers? Try searching our database.

"continue searching" message when recording a "find & replace" mac

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cmmnctng - 19 Oct 2005 15:35 GMT
I want to record a "find & replace" macro that applies only to text that is
highlighted when the macro is run.  How do you disable or avoid this
automatic message:  "Word has finished searching the selection. [Some # of]
replacements were made.  Do you want to search the remainder of the document?"

In other words, how do I convince the macro recorder that I highlighted that
text to set limits -- not just a temporary stopping point -- to the "find &
replace" process?

I don't care if the message appears during the recording process, but I want
to avoid it when the macro is run.  The purpose of a macro is to automate
some process with a single key stroke.  The "continue searching" message just
adds a further step (hitting the "no" button), and several such steps if the
macro includes multiple "find & replace" actions.

By the way, WordPerfect, Version 8, didn't have this problem.

Signature

cmmnctng

rhamre@citation.com - 19 Oct 2005 23:31 GMT
Your macro when you go into the VB Editor probably looks something like this-

   With Selection.Find
       .ClearFormatting
       .Replacement.ClearFormatting
       .Text = ""
       .Replacement.Text = ""
       .Forward = True
       .Wrap = wdFindContinue
       .Format = False
       .MatchCase = False
       .MatchWholeWord = False
       .MatchWildcards = False
       .MatchSoundsLike = False
       .MatchAllWordForms = False
       .Execute
   End With

Where it says ".Wrap = wdFindContinue" change that to ".Wrap = wdFindStop"

That should do it.

-Ryan

> I want to record a "find & replace" macro that applies only to text that is
> highlighted when the macro is run.  How do you disable or avoid this
[quoted text clipped - 12 lines]
>
> By the way, WordPerfect, Version 8, didn't have this problem.
 
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.