Maybe very simple, andif?
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? :confused: 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 |
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? :confused: 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 |
Maybe very simple, andif?
Thanks! Knew it had to be something simple but excel help didn't show the and function. -- Viperius ------------------------------------------------------------------------ Viperius's Profile: http://www.excelforum.com/member.php...o&userid=37565 View this thread: http://www.excelforum.com/showthread...hreadid=571959 |
All times are GMT +1. The time now is 10:01 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com