thefastlane
New Member
- Joined
- Aug 13, 2014
- Messages
- 12
Hey,
I was wondering how to set the fill color in a range("A2:C2") based on what C2 said(e.g-"Yes"). I know how to do this step..
If Sheet1.Range("C2") = "Yes" Then
Sheet1.Range("A2:C2").Interior.Color = RGB(0, 176, 240)
Sheet1.Range("A2:C2").Font.Color = RGB(0, 51, 0)
End If
It's automatically doing this for my entire sheet that's confusing. Basically, for every "yes" in column C, I want it and the two cells next to it to be a certain color. Any ideas?
I was wondering how to set the fill color in a range("A2:C2") based on what C2 said(e.g-"Yes"). I know how to do this step..
If Sheet1.Range("C2") = "Yes" Then
Sheet1.Range("A2:C2").Interior.Color = RGB(0, 176, 240)
Sheet1.Range("A2:C2").Font.Color = RGB(0, 51, 0)
End If
It's automatically doing this for my entire sheet that's confusing. Basically, for every "yes" in column C, I want it and the two cells next to it to be a certain color. Any ideas?