I want to delete all the rows if the value in Vendor column is found in another column. (lookupVendor Col in another sheet)
MainSheet
LookupColumn
VendorCol
google
microsoft
apple
vendorA
VendorB
Here is what I have but it only delete for one value. How can I make it use the entire LookupColumn and detete any rows that colc value is found in lookupColumn. My simple VBA code handles one value at a time.(which is not efficient)
Sub Find_Vendor()
Dim rng As Range
Dim what As String
what = "Microsoft"
Do
Set rng = ActiveSheet.UsedRange.Find(what)
If rng Is Nothing Then
Exit Do
Else
Rows(rng.Row).Delete
End If
Loop
End Sub
Mainsheet: Contains 600,000 rows LookupColumn contains 400 entries. The existing code is super slow for the volume of data I have.