View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Die_Another_Day Die_Another_Day is offline
external usenet poster
 
Posts: 644
Default Maybe very simple, andif?

If Range("B6").Interior.Color = RGB(0, 255, 0) And Range("B6") = "O"
Then
Range("H6").Interior.Color = RGB(0, 255, 0)
Range("H6") = "X"
End If

Charles
Viperius wrote:
What I'm looking for is how to combine arguments in a way that its not
If this OR that, but that its if this AND that. I want cell H6 to turn
green and display an "X" character when cell B6 is green and contains
"O" for instance.

This is what I have thusfar:

If Range("B6").Interior.Color = RGB(0, 255, 0) = "O" Then
Range("H6").Interior.Color = RGB(0, 255, 0) = "X"


Cell H6 does turn green when B6 is green, but no "X" shows up in H6.
Can someone help me with this? Thanks in advance.


--
Viperius
------------------------------------------------------------------------
Viperius's Profile: http://www.excelforum.com/member.php...o&userid=37565
View this thread: http://www.excelforum.com/showthread...hreadid=571959