Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Tab color, Font color

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Tab color, Font color


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
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
Checkbox to change background color, font color and remove/ add bo Sara Excel Discussion (Misc queries) 2 May 1st 23 11:43 AM
fill color and font color icons do not work in excel huer59 Excel Discussion (Misc queries) 0 November 29th 07 01:06 PM
selection.font.color returns wrong color; the first execution AnExpertNovice Excel Programming 14 February 7th 06 12:30 PM
Default Border, Font Color, and Cell Background Color Elijah Excel Discussion (Misc queries) 1 October 28th 05 04:10 PM
My fill color and font color do not work in Excel Std Edition 2003 chapstick Excel Discussion (Misc queries) 1 September 11th 05 08:48 PM


All times are GMT +1. The time now is 04:32 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"