pakilprogramador
Member
please help me,, how to optimize this code to work with millions of data ???
Code:
Sub deleterowssearching_sheet2()
Dim H1, H2, x1, x2
Set H1 = Sheets("Hoja1")
Set H2 = Sheets("Hoja2")
For x1 = H1.Range("C" & Rows.Count).End(xlUp).Row To 1 Step -1
For x2 = 1 To H2.Range("C" & Rows.Count).End(xlUp).Row
If UCase(H1.Range("C" & x1)) Like "*" & UCase(H2.Range("C" & x2)) & "*" Then
H1.Rows(x1).Delete
Exit For
End If
Next
Next
End Sub