I have two columns A and B in an excel sheet. A column is the drop down list that contains "Yes" and "No". And I would like to change the color of B cell that base on text value of A cell from drop down list. For example, if I select "Yes" in A1 cell than the B1 cell should show Green color. A2, A3... etc.
I am not a programmer so I am really noob at VBA coading. Conditional Formation also have a problem for this case.
If anyone have an answer for this, That would be my pleasure.

Private Sub Worksheet_Change(ByVal Target As Range)this Sub will occur every time data in Worksheet is changed.Sub RowFormat() Dim A As Range For Each A In Range("A1:A" & Cells(Rows.Count, "A").End(xlUp).Row) If Not IsError(A) Then If A.Value = "Yes" Then Range("B" & C.Row & ":BB" & C.Row).Interior.ColorIndex = 6 Else Range("B" & C.Row & ":BB" & C.Row).Interior.ColorIndex = xlNone End If End If Next A End Sub