Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have some code that will create a list of sheets in the book and
formats the cell color to the same color as the worksheet tab. This works fine until I get to a darker tab color. Excel will use the dark color and the default font of black sometimes makes the cell visuall7y unreadable. Excel seems to have an inherent approach to give the tab font a white or similar font when using very dark blue, black, red etc tab colors. The tab font color property however does not seem to be exposed to VBA. Does anyone have a workaround? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() You could create a lookup table or a set of arrays containing all of the 56 fill colors with the corresponding font color to use. However, for what its worth, I would work around it by not coloring the cell. -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware wrote in message I have some code that will create a list of sheets in the book and formats the cell color to the same color as the worksheet tab. This works fine until I get to a darker tab color. Excel will use the dark color and the default font of black sometimes makes the cell visuall7y unreadable. Excel seems to have an inherent approach to give the tab font a white or similar font when using very dark blue, black, red etc tab colors. The tab font color property however does not seem to be exposed to VBA. Does anyone have a workaround? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checkbox to change background color, font color and remove/ add bo | Excel Discussion (Misc queries) | |||
fill color and font color icons do not work in excel | Excel Discussion (Misc queries) | |||
selection.font.color returns wrong color; the first execution | Excel Programming | |||
Default Border, Font Color, and Cell Background Color | Excel Discussion (Misc queries) | |||
My fill color and font color do not work in Excel Std Edition 2003 | Excel Discussion (Misc queries) |