View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Macro to find text, then delete entire line containing the text?

What constitutes a 'line' in this context. Is it a line that ends in a
paragraph mark - ¶
Is the text at the start of the line?
See http://www.gmayor.com/replace_using_wildcards.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Tailings wrote:
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.