View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Celt[_34_] Celt[_34_] is offline
external usenet poster
 
Posts: 1
Default Compare 2 columns to a 3rd with a twist.


TIA for any help provided.

I have searched and found lots of examples of how to "find" a cell with
a macro, but need to take it a step further.

My workbook has 2 sheets. On the first are two lists containing
alphanumeric input. The location of the first list will always be
fixed (ie. input will always start at cell C6). However, the second
column, could be any number of columns to the right of the
first...input always starting with row 6. The 2nd sheet contains the
master list... located in cells A4:lrow.

The "headers" of both these columns are the same, the word "Code" (on
row 4). I was thinking it might be possible to write a macro to find
the word "Code", identify that column number (knowing the rows will
always start at 6), and use that address to define where the macro
should start looking.

I would be looking for an exact match (which I think VBA automatically
does) including the same case. If a cell in the columns does not match
the master list on the 2nd sheet, I would want to turn it yellow.

I have played around with several of the "find" exapmle I have found on
this forum, but have not had any success. I have also recorded the find
command to look at the coding. I have not had much luck getting that to
work.

Any help you all offer is, as always, greatly appreciated!


--
Celt
------------------------------------------------------------------------
Celt's Profile: http://www.excelforum.com/member.php...o&userid=19413
View this thread: http://www.excelforum.com/showthread...hreadid=526811