![]() |
#4
|
||||
|
||||
![]()
Which do you want to compare? If you just want to compare Styles, you could use:
If .Range.Style = .Previous.Range.Style Then If you want to test that paragraphs in a particular Style are preceded by one in another defined Style, you could use code like: If (.Range.Style = "Style2") And (.Previous.Range.Style = "Style1") Then
__________________
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 |