various ways to do it:
1.
sort the first column. Use record macro to record the sort to give a
indication of the code
sort columns 2 and 3
then use a range object (dim rngColA as range) and set it to the firs
cell in column a
Use a second range object to point to the first cell in column B then
if rngColA=rngColB move the pointers down (use set rng=rng.offset(1))
if they don't match insert cells moving rows down(again a record macr
should show you how to do this)
when you get to the end all is ok.
2. sort the first column and use a vlookup to match the other valuse
3. open the spreadsheet using ADO or DAO and execute an SQL query o
it. This is my preferred method if there is lots of data to work with
regard
--
tony
-----------------------------------------------------------------------
tony h's Profile:
http://www.excelforum.com/member.php...fo&userid=2107
View this thread:
http://www.excelforum.com/showthread.php?threadid=50766