![]() |
#2
|
||||
|
||||
![]()
Try:
Code:
Sub Demo() Application.ScreenUpdating = False Dim i As Long With ActiveDocument For i = 2 To .Paragraphs.Count With .Paragraphs(i) If .Range.Text = .Previous.Range.Text Then .Previous.Range.HighlightColorIndex = wdYellow End If End With Next End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Replacing paragraph formatting before column break also changes the next paragraph after the break | jjmartin1340 | Word | 3 | 09-21-2015 10:50 PM |
Split a paragraph | bnyamin | Word VBA | 13 | 10-05-2014 08:18 PM |
![]() |
icloudy | Word | 1 | 12-09-2012 03:49 PM |
spacing within paragraph | psmoore | Word | 1 | 06-22-2010 02:15 AM |
Paragraph | cloa513 | Word | 1 | 12-29-2009 02:20 AM |