i have 7,00,000 numbers in col A and in Col c i have about 85000 numbers i want to delete col C numbers from A in quickest way!
i have below code its taking to long in fact unbearable time.
Code: Select all
Sub nnenn()
Dim r As Range
p = Cells(Rows.Count, 1).End(3).Row
pp = Cells(Rows.Count, 3).End(3).Row
For i = 2 To pp
mn = Application.Match(Cells(i, "c"), Range("a2:a" & p), 0) + 1
If mn > 0 Then
If r Is Nothing Then
Set r = Cells(mn, 1)
Else
Set r = Union(Cells(mn, 1), r)
End If
End If
Next i
r.Delete Shift:=xlUp
End Sub