Try the following macro:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long
With ActiveDocument.Range
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "[^13]{2,}"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = False
.MatchWildcards = True
.Execute
End With
Do While .Find.Found
For i = 1 To .Paragraphs.Count
With .Paragraphs(i)
If .Borders(wdBorderBottom).LineStyle <> wdLineStyleNone Then
.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
.Range.InsertBefore "______________________" & _
"________________________________________" & _
"_________________________________________"
End If
End With
Next
.Collapse wdCollapseEnd
.Find.Execute
Loop
End With
Application.ScreenUpdating = True
End Sub
For PC macro installation & usage instructions, see:
http://www.gmayor.com/installing_macro.htm
For Mac macro installation & usage instructions, see:
http://word.mvps.org/Mac/InstallMacro.html