Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wordbasic question - how to do a search without a query
Message
From
17/02/1998 09:01:05
Paula Rhodes
Ashley Publications Ltd.
London, United Kingdom
 
General information
Forum:
Microsoft Office
Category:
Word
Miscellaneous
Thread ID:
00078970
Message ID:
00079285
Views:
30
Dabniel,
You could try changing wrap = 2 to wrap = 1. This should stop Word asking you if you want to continue checking the rest of the document. Though I don't know if it will then check your whole document.
Hope this helps, Paula

>In Word (7.0) - a macro (shown below) is used to do search-and-replace functions on a selected block of text. However, there are four searches in the macro. And whenever the macro is run - word asks me four times if I want to continue searching the rest of the document. Every time I run this macro, I have to click No four times - which is obviously inconvenient.
>
> How can I program this macro to perform the Search-and-Replace on a selected block of text, without searching the rest of the document, and without asking me every time?
>-------------------------------------------------------------------
>Macro shown below:
>
>Sub MAIN
>EditReplace .Find = "^p", .Replace = " ", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 2, .FindAllWordForms = 0
>EditReplace .Find = " ", .Replace = " ", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 2, .FindAllWordForms = 0
>EditReplace .Find = " ", .Replace = " ", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 2, .FindAllWordForms = 0
>EditReplace .Find = ". ", .Replace = ". ", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 2, .FindAllWordForms = 0
>CharRight 1
>InsertPara
>End Sub
>--------------------------------------------------------------------
>
> Thanks! :)
>
>
> Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform