![]() |
#4
|
||||
|
||||
![]()
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 Mac macro installation & usage instructions, see: http://word.mvps.org/Mac/InstallMacro.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
formatting, macro |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Bluie | Word | 3 | 10-24-2016 05:31 AM |
![]() |
dlowrey | Word Tables | 6 | 03-09-2015 11:29 AM |
![]() |
phamh | PowerPoint | 2 | 10-21-2014 02:26 PM |
![]() |
subscriber | Word | 2 | 05-14-2014 07:17 AM |
![]() |
msbytes | Word | 4 | 08-15-2011 09:21 AM |