RGB of highlighted Excel button

R

RB Smissaert

Using Excel 2002.
Could anybody tell me what the RGB color is of a highlighted button on the
main Excel toolbar?
This is the color that it changes to when the mouse moves over it.
It is something like RGB(195, 215, 235), but I can't figure out what it is
exactly.
Alternatively a system color would do.
Thanks for any help.

RBS
 
D

David McRitchie

cosmin.com - Color Detector, Freeware program to detect the color
of any pixel on the screen. Simply run the program, point the mouse
cursor anywhere on the screen, and the color detector window will
display the RGB values, HTML hex code, and the color name of the
color of the pixel pointed to by the mouse cursor.

Note that Excel uses ColorIndex, and RGB values will be changed
to a ColorIndex value so unless you have an exact match you
probably won't like the results of Excel's approximation.

More information on Color in
Color Palette and the 56 Excel ColorIndex Colors
http://www.mvps.org/dmcritchie/excel/colors.htm
 
V

Vasant Nanavati

Interestingly, it does *not* appear to be a system color. The value seems to
be equal to or close to &H00FFC0C0&, 16761024, or RGB(192,192,255)
 
R

RB Smissaert

David, Vasant,

Thanks, the ColorDetector did the trick.
The freeware program I had couldn't catch this.
The RGB is (198, 211, 239) or as a long 15717318.
Strange indeed there is no system color for this.

RBS
 
V

Vasant Nanavati

On my system ColorDetector shows the color to be RGB(168,175,194) or
12758952 ... so it is clearly dependent on the system, the video display
driver, etc. Like you, I'm very surprised that it is not a system color.
 
R

RB Smissaert

I needed the color for buttons on an Excel user form. The color comes indeed
out very differently on different systems.
As there is no system color for this I suppose this can't be helped. Or
would there be a way to determine the RGB color of the hightlighted button
on different systems? I suppose this won't be worth the effort if it were at
all possible and it would be best to pick the middle color that does
reasonably well on all systems.

RBS
 
D

David McRitchie

You are going to get different colors depending on how many
bits you use for colors -- you will see the difference and many
windows if not all of them. If you are trying to simulate the
same color with the default 56 ColorIndex colors -- forget it.
The colors are probably choose to make non user colors look
different from colors used by the system and by Excel,
You wouldn't want to choose the color used for cell selection,
for instance.
--
 
V

Vasant Nanavati

RB Smissaert said:
Or
would there be a way to determine the RGB color of the hightlighted button
on different systems? I suppose this won't be worth the effort if it were at
all possible

I agree ... I think we're well past the point of diminishing returns on
this issue <g>.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top