Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Value of a cell in a range if color is yellow
I searched the board for the answer to this question and went to
http://www.cpearson.com/excel/colors.htm to see if i could find what i needed but to no avail. What I need is a function that will look in a range, (which are months formatted as mmm-yy) and give me the value of that cell that is yellow. I did get some code, but it comes up as a message box. I'd rather have it as a formula i can stick in a cell and have it return an value. so if in the range b12:m12, j12 is yellow, i'd like to have the value of j12 in a cell. Sub yellowvalue() For Each c In [b12:m12] If c.Interior.ColorIndex = 6 Then MsgBox c Next End Sub Can anyone help me out? Dominique |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
change the color of yellow tip box on data validation | Excel Discussion (Misc queries) | |||
Change cell color from yellow to blue | Excel Worksheet Functions | |||
formula for if Cell c1 is yellow shaded cell d1 should be yellow | Excel Discussion (Misc queries) | |||
How do you count cells with background color yellow? | Excel Discussion (Misc queries) | |||
How to change the color of the series markers from yellow to Black | Charts and Charting in Excel |