Please help me understand what I am not able to, because I really
would like this piece of code you put together to work for me. I have
copied it verbatim, but when I test it, it does not give me good
results. My test is a large series of telephone numbers in A, so I
copy them to B and insert 5 additional phone numbers in various
locations of B. In theory when I run your code should I not be left
with only the 5 new numbers I have inserted in B. Please correct me if
I did not understand. Because I do not get the 5 numbers, the only way
I will get the 5 numbers is if I do not insert new cells shifting all
the numbers in B.
smittydotbat wrote in message ...
I am new to the excel programming with VB and I need some help...
I have an excel workbook with one sheet. In one column I have a list of
names.
On another column I have another list of names.
What I am trying to accomplish is that when a button click event is
invoked, I would like the cells in the first column to be compared
against the other column. When it does this compare it will strip out
the duplicates in column two (which are also in column one) and leave
what's left.
Scenario:
*Before the compare*
Column A Column B
x x
xy xyy
xyz xyz
yzx yzx
*After the Compare*
Column A Column B
x xyy
xy
xyz
yzx
If anyone can help me with this I would greatly be appreciative.