Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Hello everybody.
I've set a dropdown list this way:
I need a change in the color background of the cell in case of choice "YES".
How can I manage the matter?
I've set a dropdown list this way:
Code:
Dim MyList(2) As String
MyList(0) = "YES'"
MyList(1) = "NO"
Dim lrut As Long
lrut = sheet1.Cells(Rows.Count, "E").End(xlUp).Row
With Range("G2:G" & lrut).Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, Formula1:=Join(MyList, ",")
End With
I need a change in the color background of the cell in case of choice "YES".
How can I manage the matter?