You're welcome. Glad to help out and thanks for the feedback. Modified.
Sub Keibri()
Dim i As Long, x As Long, y As Range, z, xx As Long, ws1 As Worksheet, ws2 As Worksheet
Set ws1 = Sheets("Sheet1")
Set ws2 = Sheets("Sheet2")
x = ws2.Range("A" & Rows.Count).End(3).row
ReDim z(2 To x)
With ws2
xx = ws1.Range("A" & Rows.Count).End(3).row
For i = LBound(z) To UBound(z)
For Each y In ws1.Range(ws1.Cells(2, "A"), ws1.Cells(xx, "A"))
If y.Value = .Cells(i, "A") Then
GoTo zz
Else
.Cells(i, "A").Delete xlUp
End If
Next y
zz:
Next i
End With
End Sub
Bookmarks