Quantcast
Channel: Word for Developers forum
Viewing all articles
Browse latest Browse all 4350

Colors not matching

$
0
0

To perform an operation, I need to confirm that the correct color has been used for certain words.

To test, I have inserted a block of text and colored it 'blue'. (The 'hover over' name of the color when I select it from the gallery of colors is "Blue" (not Navy blue, not Light blue, just Blue).)

The wdenumerator for the color blue is "16711680"

When I encounter the 'blue' text via my macro and compare to see if that text is 'blue', the values do not match. Here is the equation:

"If Selection.Font.Color = wdColorBlue then . . . 

The Selection.Font.Color value shown in the hover over info block is '12611584'.

Since the colors ostensibly don't match, I cannot proceed.

Why is 'blue' from the color gallery not 'blue' in the routine? Is there another color chart I should be using?


Viewing all articles
Browse latest Browse all 4350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>