Something like this? Please make a copy and test on your copy.
Sub CompareTwo()
Dim ws1 As Worksheet
Dim ws2 As Worksheet
Dim rngCell As Range
Dim rngSource As Range
Dim rngCell2 As Range
Dim rngCompare As Range
Dim lngCalcState As Long
Set ws1 = ActiveWorkbook.Sheets("Sheet1")
Set ws2 = ActiveWorkbook.Sheets("Sheet2")
lngCalcState = Application.Calculation
With Application
.ScreenUpdating = False
.EnableEvents = False
.Calculation = xlCalculationManual
End With
With ws1
Set rngSource = .Range("A2", .Range("A2").End(xlDown))
End With
With ws2
Set rngCompare = .Range("A2", .Range("A2").End(xlDown))
End With
For Each rngCell In rngSource
For Each rngCell2 In rngCompare
If rngCell2.Value = rngCell.Value Then
With rngCell2.Offset(0, 1).Resize(1, 6).Font
.Italic = True
End With
End If
Next
Next
With Application
.ScreenUpdating = True
.EnableEvents = True
.Calculation = lngCalcState
End With
End Sub
Bookmarks