![]() |
#1
|
|||
|
|||
![]()
I am trying to embed an IF statement within another IF statement with a condition that would change the color of the cell. I'm aware of macros and really don't think it should be that complicated.
=IF("",RGB(255,0,0),"") WHY NOT!!!! Is this possible? If so please help. Thanks in advance..... ![]() |
#2
|
|||
|
|||
![]()
So are you looking to do this in VBA? if so you need to put some more code in so that your program know what objects to look at. Start with this
Code:
If Range("A1").Interior.ColorIndex = 4 Then If Range("A1").value <> "" Then msgbox "This cell equals nothing and is green." End If End If |
#3
|
||||
|
||||
![]()
I can't tell much from your question but if you want to change the colour of a cell using a formula then conditional formatting is what you need.
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Anderso | Excel | 1 | 12-19-2014 11:53 PM |
Converting color codes in VBA | Ulodesk | Word VBA | 7 | 11-24-2014 04:15 AM |
Is it possible to merge the two VBA codes into just one | sam2149 | Excel Programming | 0 | 02-26-2014 05:28 AM |
![]() |
Cassik | PowerPoint | 5 | 11-04-2013 02:08 PM |
![]() |
tinfanide | Word VBA | 7 | 10-23-2012 03:13 PM |