This assumes "yellow" is the standard yellow (color index number 6)
Option Explicit
Sub Change_Value_By_Color()
'declare variables
Dim c As Range, lrow As Long
'count the number of used rows in column-D
lrow = Cells(Rows.Count, "D").End(xlUp).Row
On Error Resume Next
'loop thru cells in column-D and test if colorindex = 6 (standard yellow)
For Each c In Range("D1:D" & lrow)
If c.Interior.ColorIndex = 6 Then
'offset to cell in same row but in column-C and place value into cell
c.Offset(, -1).Value = "rev2"
End If
Next c
End Sub
Bookmarks