separate 2 different lists

  • Thread starter Thread starter rlynx
  • Start date Start date
R

rlynx

I have 2 lists of names and emails, A and B. List A includes list B. Anyone
knows how to separate them quickly. Meaning list A minus list B?
 
Dim LastRow As Long
Dim i As Long

With ActiveSheet

LastRow = .cells(.Rows.Count, "A").End(xlUp).Row
For i = LastRow To 1 Step -1

If Not IsError(Application.Match(.cells(i, "A").Value,
..Columns(2),0)) then

.Cells(i, "A").Delete Shift:=xlShiftUp
End If
Next i
End With

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top