I am looking for a formula to return either True/False in Column J if the font color in Column H is Red.
Is there a formula that can do this?
I am looking for a formula to return either True/False in Column J if the font color in Column H is Red.
Is there a formula that can do this?
Last edited by randolphoralph; 11-24-2008 at 06:49 PM.
Here is UDF for the same
Usage :--![]()
Please Login or Register to view this content.
=isRed(A1)
will return True if A1 is red else it will return false
Shijesh Kumar
http://shijesh.wordpress.com/
I entered the code provided into a UDF and it returns false on cells where the font color is red and black.
Did I do something wrong?
Have you created a new module and entered the code there or have u used sheet1/sheet2/sheet3 module..
I entered a new Module under PERSONAL.xls
Hi,
I have attached a spreadsheet..See if this is what you want..
If any modification need tell me .. i will do that
If Red.. .it will be true else it will display false
I see why it did not work.
I am trying to see if the color of the Font is Red.
Not the fill color.
Sorry for the confusion.
not a problem..
for font color the is code is almost similar
![]()
Please Login or Register to view this content.
Thanks a million!
This code snipet worked better for me because the tested cell was made "red" based on a Conditional Format "Formula Is" script.
Function isRed(cell As Range) As String
If cell.Font.Color = red Then
isRed = "old"
Else
isRed = "Valid"
End If
End Function
Function isRed(cell As Range) As Boolean
If cell.Font.Color = red Then
isRed = True
Else
isRed = False
End If
End Function
Hi Guys!
I want to check if two font colours are equal (in an IF function), then ... do something
So if this cell's font colour = this cells font colour
How can i do that ?
martyy007 we3lcome to the forum
Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.
If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.
Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks