If I understand you correctly, a wildcard search for
^13{3,}
replace with
^p^p^p
should do the trick if the lines are truly blank- but the rows of
"................."
throw doubt on that. What do the dots represent, if anything?
If they are dots then
first run a wildcard replace of
.@^13
with
^p
If they are spaces change the dot to a space.
The following macro incorporates that and assumes a space for the dot.
Selection.HomeKey Unit:=wdStory
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = " @^13"
.Replacement.Text = "^p"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Find.Execute replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^13{3,}"
.Replacement.Text = "^p^p^p"
End With
Selection.Find.Execute replace:=wdReplaceAll
See http://www.gmayor.com/replace_using_wildcards.htm

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> hello
>
[quoted text clipped - 27 lines]
>
> Thanks in advance.
shark102 - 11 Jan 2006 15:15 GMT
hello
dots represent spaces
macro works, I did not change anything there.
Thank you very much.
> If I understand you correctly, a wildcard search for
> ^13{3,}
[quoted text clipped - 69 lines]
> >
> > Thanks in advance.
Greg - 11 Jan 2006 15:35 GMT
See:
http://gregmaxey.mvps.org/Clean_Up_Text.htm