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]
|