Macro to delete certain lines

T

theiliad2000x

Is there a macro, or a way to create one whereby if I have the
following lines/list in my Word document:

Alpha Beta Gamma
Alpha Alpha Alpha
Beta Gamma Gamma
Gamma Gamma Alpha

If I wanted to delete all lines in MS word that have the word "Beta"
in it, I should be left with:

Alpha Alpha Alpha
Gamma Gamma Alpha

Thanks.
 
J

John McGhie

Yes, there is. But without your version information we can't tell you what
it is.


Is there a macro, or a way to create one whereby if I have the
following lines/list in my Word document:

Alpha Beta Gamma
Alpha Alpha Alpha
Beta Gamma Gamma
Gamma Gamma Alpha

If I wanted to delete all lines in MS word that have the word "Beta"
in it, I should be left with:

Alpha Alpha Alpha
Gamma Gamma Alpha

Thanks.

--
Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Microsoft MVP, Word and Word:Mac
Sydney, Australia. mailto:[email protected]
 

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