That didn't work. The pop-up window I keep getting says: Word has finished
searching the selection. Do you want to search the remainder of the document?
Any other ideas would be appreciated.
> That didn't work.
What didn't work? Did you look in your macro for all lines like
.Wrap = wdFindAsk
and replaced them with
.Wrap = wdFindStop
?
Klaus
hinesgg - 29 Dec 2004 16:59 GMT
Here's my code:
Selection.SelectColumn
With Selection.Find
.Text = "3_440 HR **"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.Wrap = wdFindStop
I'm not a programmer, so I created this macro by recording keystrokes. I
then copied and pasted the code and edited the contents in the quotation
marks. After each search and replace I am asked if I want to search from the
beginning. That pop-up box is what I'd like to eliminate.
Thanks for all your help.
> > That didn't work.
>
[quoted text clipped - 5 lines]
>
> Klaus
Greg Maxey - 29 Dec 2004 17:11 GMT
Trying changing
.Wrap = wdFindAsk
To
.Wrap = wdFindStop

Signature
Greg Maxey/Word MVP
A Peer in Peer to Peer Support
> Here's my code:
>
[quoted text clipped - 31 lines]
>>
>> Klaus
Klaus Linke - 29 Dec 2004 17:17 GMT
Selection.SelectColumn
With Selection.Find
.Text = "3_440 HR **"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
:-) Klaus
hinesgg - 29 Dec 2004 17:49 GMT
Woo Hoo! It worked.
Duuuhhhh! Guess I was looking in the wrong place.
Thanks to all!
> > That didn't work.
>
[quoted text clipped - 5 lines]
>
> Klaus
Helmut Weber - 29 Dec 2004 20:37 GMT
Hi Klaus,
I see, giving the same advice twice or three times,
thanks to Greg, increases the effect by more then three times.
Reminds me of "Gestalt"-theory:
"The whole is more than the sum of it's parts."
Some, however, maintain that the opposite is true.
They are wrong, I'd say.
lol
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
>> That didn't work.
>
[quoted text clipped - 5 lines]
>
>Klaus