LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default Undocumented ColorIndices

"Peter T" <peter_t@discussions wrote in message ...
Peter -
Thanks for confirming that I wasn't just imagining things. I'll
have to check out the shape objects. I gather from your post that
there is a Windows color palette in the background which shows through
in some undocumented ways.

Have a good day

-John

p.s. - Sorry that us Americans have replaced "colour" by a less
colorful word.

John,

In charts applying color index's 57/8 & 59 applies automatic (typically)
white & black as set by your system. Cannot apply these to all chart items.
When you return these Excel matches to the closest colours in the palette,
by default 1 is black and 2 is white. If you customize your palette, say
"move" black & white to different palette positions or change your system
colours you will see what I mean, and get different index's returned.

Probably better to avoid using these numbers except as SchemeColors for
automatic black & white, if/when appropriate.

With shapes, apart from the 56 palette colours you can apply most system
colours with ScemeColor 64 to 80 (but not to text).

Regards,
Peter

"John Coleman" wrote in message
om...
Thanks for your reply - but I fail to see how looking at documentation
will help in understanding undocumented behavior. My original code
assumed 56 indices, but Excel itself is what is doing something wierd
with indices 57-59.

-John Coleman

"Tom Ogilvy" wrote in message

...
Excel only supports 56 colors. xlnone is a special case.

http://support.microsoft.com/kb/149170/EN-US/
Sample Visual Basic Code to Create Color Index Table

--
Regards,
Tom Ogilvy


(snip)



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RangeFromPoint Undocumented Returned Object Tushar Mehta Excel Programming 0 August 10th 04 04:04 PM
Undocumented Excel key-bindings. R Avery Excel Programming 2 April 17th 04 03:33 AM
Other undocumented VBA changes? No Name Excel Programming 0 January 8th 04 09:58 AM
Pivot Table undocumented error David Excel Programming 3 September 5th 03 07:53 PM


All times are GMT +1. The time now is 07:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"