Try:
Sub CompareCols()
Application.ScreenUpdating = False
Dim LastRow As Long, material As Range, rng As Range, foundMaterial As Range
LastRow = Sheets("Summary").Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Set material = Sheets("Summary").Range("B9:B" & LastRow)
For Each rng In material
Set foundMaterial = Sheets("SourceList").Range("C:C").Find(rng, LookIn:=xlValues, lookat:=xlWhole)
If foundMaterial Is Nothing Then
rng.Resize(, 3).Interior.ColorIndex = 3
rng.Resize(, 3).Font.Color = vbWhite
rng.Offset(0, 2) = "Material does not exist in the SourceList"
End If
Next rng
Application.ScreenUpdating = True
End Sub
Bookmarks