![]() |
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 |
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 |
All times are GMT +1. The time now is 12:13 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com