Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default conditional formatting test

I have a cell where font is black, but due to conditiona formatting the font
color is white. How do i test if font is white due to conditional
formatting.
I am trying
If ActiveCell.ColorIndex = 3 Then End

This does not work

Sunil


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default conditional formatting test

Hi,

To test the font colour use

MyColour = ActiveCell.Font.ColorIndex

But this won't return the font colour if that colour is set by conditional
formatting. It can be done and I recall there is a method on the XLdynamic
web site but it's not easy.

Why don't you test for the condition that causes the format colour white
from which you can infer the colour of the font.

Mike

"Sunil Patel" wrote:

I have a cell where font is black, but due to conditiona formatting the font
color is white. How do i test if font is white due to conditional
formatting.
I am trying
If ActiveCell.ColorIndex = 3 Then End

This does not work

Sunil



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
Conditional Formatting - Test Practice downinfl Excel Discussion (Misc queries) 0 May 6th 10 10:49 PM
conditional formatting test Sunil Patel[_2_] Excel Programming 1 March 26th 09 07:29 PM
Conditional formatting to test blank text cell Andyjim Excel Worksheet Functions 4 January 10th 08 08:45 PM
Conditional Formatting to Test Value in Cell Carroll Excel Worksheet Functions 3 March 9th 06 07:38 PM
Multiple-Test Conditional Formatting BruceS Excel Discussion (Misc queries) 4 May 30th 05 05:03 PM


All times are GMT +1. The time now is 10:04 AM.

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

About Us

"It's about Microsoft Excel"