Macro to find text, then delete entire line containing the text?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have text that I am formatting using macros,mostly with find & replace.
Within the text are lines containing specific text that I need to delete. I
have a macro to find one instance of the text and delete the entire line, but
I can't figure out how to make it delete ALL lines with the specified text.
 
Yes. Every line of text has a paragraph mark at the end. I have found out how
to select the entire line, and delete it. What I am having trouble with is
having the macro continue and find every instance of the specified text
throughout the document. Right now my macro just runs once and stops. I'm not
sure yet how to make it loop until it has found all instances of the
specified text.

Thanks in advance for the assistance! And I already learned a great deal
from your wildcards info.
 
Back
Top