View Single Post
 
Old 04-01-2018, 04:04 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

If your colours are specified as, for example:
HTML Code:
[color=#0040FF]Disk Cleanup[/color]
then you'd do better to use something like:
Code:
    .Text = "\[color=0040FF\](*)\[/color\]"
    .Replacement.Font.Color = &H40FF
That way, you don't need to find a ColorIndex (which won't exist for some colours) and you'll get a more faithful representation of what the actual colour is (&H40FF is red, not green).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote