Steved,
You were insulted. Ok, the mule bit might have been bit sarcastic,
but insulting your was not my intent. My intent was to suggest that
you "learn from what you have already asked." Try a Google search
for "Steved" and "Find and Replace." I think that you will find
that you are asking questions that others have arleady answered for
you. ;-)
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
Steved wrote:
Hello Greg from Steved.
Greg you need to take a step back, as I find what you have written
to be completley out off context, you need to understand that
someone like myself may have only one project, but tries to inprove
( "Yes you guessed it I do not use word very often ") so yes I ask
questions which are important to me and may seem basic to you but
not understanding the terminology in putting macros together in my
case I believe that is why this forum was set up in the first
place, if people desire not to answer me well that's fine, so here
lies the lesson Greg as said earlier in my statement I am not a
word person but value very much the input you have all given to me.
So if I come back to this forum just ignore me, if that is how you
feel.
Thankyou.
:
Steved,
I think that the general consensus is that you have been shown
enough find and replace basics over the last year or so to educate
a mule. No offense intended mate. I also ask a lot of questions
that a master would consider primary. Often after asking I try,
fail, try again fail, try again and succeed. My point is that I
wish that you would try to apply the things that you have already
learned.
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
Steved wrote:
Thanks Greg
And I will in future not thank in advance, I did not think.
Cheers.
:
Steved,
Some consider thanking in advance as rude ;-)
If you code to delete and entire paragraph then that is the deed
that will be done.
Sub Win()
Selection.HomeKey wdStory
Selection.Find.ClearFormatting
With Selection.Find
Do While .Execute(FindText:="Plc [0-9]%", MatchWildcards:=True,
Wrap:=wdFindContinue, Forward:=True) = True
Selection.Range.Delete
Loop
End With
End Sub
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
Steved wrote:
Hello from Steved Thankyou in Advance.
When I run the below macro it deletes the whole paragraph is it
possible please to modify the below macro to delete Plc 0% and
leave L 5:0:0
Plc 0% L 5:0:0
Sub Win()
Selection.HomeKey wdStory
Selection.Find.ClearFormatting
With Selection.Find
Do While .Execute(FindText:="Plc [0-9]%", MatchWildcards:=True,
Wrap:=wdFindContinue, Forward:=True) = True
Selection.Paragraphs(1).Range.Delete
Loop
End With
End Sub