View Single Post
 
Old 01-26-2019, 10:49 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,384
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Testing whether a document uses more than one font colour or highlight is as simple as:
Code:
Sub Demo()
With ActiveDocument.Range
  MsgBox "Font Colour: " & .Font.ColorIndex
  MsgBox "Highlight Colour: " & .HighlightColorIndex
End With
End Sub
If the returned value is 9999999 for either, there is more than one of that property in use (no highlight counts as one).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote