Try this. This will copy the format that corresponds to the lookup value and paste the format to Sheet 1
Sub test()
Dim rCell As Range
Dim x As Integer
'First use a vlookup to pull in the color of each animal
For Each rCell In Range("a2", Range("a2").End(xlDown))
rCell.Offset(0, 1).Formula = "=vlookup(" & rCell.Address(0, 1) & ",Sheet2!$A$2:$B$5,2,false)"
'Then find the format of the color on Sheet 2 and copy it.
Sheets("sheet2").Activate
x = WorksheetFunction.Match(rCell.Value, Range("a1", Range("a1").End(xlDown)), False)
Cells(x, 2).Select
Selection.Copy
'Then paste the format to the adjacent cell the loop is running for
Sheets("sheet1").Select
rCell.Select
rCell.Offset(0, 1).Select
With Selection
.PasteSpecial xlPasteFormats
End With
Next rCell
End Sub
Bookmarks