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

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top