View Single Post
 
Old 11-14-2017, 06:32 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

You can't use ColorIndex or wdColor for colours other than those specified by ColorIndex & wdColor constants, respectively. hence, you'll need to replace:
Code:
cll.Range.Font.ColorIndex
with:
Code:
cll.Range.Font.Color
but then you'll still only be able to use the wdColor for colours included in the wdColor constants - for anything else you'll need to get their RGB values and use those instead.

PS: When posting code, please use the code tags, indicated by the # button on the posting menu. Without them, your code loses much of whatever structure it had.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote