Here is a triggered solution
Sub transcolor()
Dim clr, lr, lc, i, j, lr1, u As Long
Dim ws, ws1 As Worksheet
Dim rec As Range
Set ws1 = Sheet1
Set ws = Sheet2
lr = ws.Range("a" & Rows.Count).End(xlUp).Row
lc = ws.UsedRange.SpecialCells(xlCellTypeLastCell).Column
lr1 = ws1.Range("a" & Rows.Count).End(xlUp).Row
For u = 1 To lr1
For i = 1 To lr
For j = 1 To lc
If ws1.Cells(u, 1).Value = ws.Cells(i, j).Value Then
ws.Cells(i, j).Interior.Color = ws1.Cells(u, 1).Interior.Color
End If
Next j
Next i
Next u
End Sub
Bookmarks