View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
stu stu is offline
external usenet poster
 
Posts: 16
Default Find and Delete line of text

Thanks for reponse. Clearly I didn't express what I am looking to do. After
"finding" I want to delete the line with "Delete Line" function or better,
"Highlight all items found..." and then delete all lines. Looking for
something more automated than doing the selection "by hand". Macro code is
ok if Word doesn't have a "Delete Line" function.


"MarlaLouise" wrote:

You can easily locate a word/phrase by typing "Ctrl" + "F" at the same time
(or clicking on "Edit" - "Find") - type the word(s) in the text box and click
"Find Next" (you can also check the "Highlight all items found..." so you can
see where all occasions of the word or phrase occur). When you find them,
highlight what you need and delete.

Hope this helps,
MarLou

"Stu" wrote:

I want to find a word/phrase in a line and then delete that line of text. Is
there a way to do that easily? Does it require a macro?

Example: Find "BUILTIN", a word somewhere in a line of text in a document.
Then delete the line of text that contains the word "BUILTIN".