View Single Post
 
Old 12-07-2012, 07:21 AM
delasson delasson is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Dec 2012
Posts: 2
delasson is on a distinguished road
Default Compare content of two ranges INCLUDING FORMATTING

I'm comparing the content of two ranges in Word like this:

If range1.Text = range2.Text Then
...
EndIf

This works fine for actual content, but I would like to include text formatting into the comparrison as well. So if I have two ranges with the same text, BUT the text in range1 is bold, I would like the comparrison to return false.

Any ideas?

Thanks
Reply With Quote