Hi,
i need to compare two columns for differences and highlight them; the columns may contain duplicate data.
As example, for the below two columns, DWB931 on column A and DWD966 from column B should be highlighted. Note that there is one DWD966 in column A but two in column B.
i need to do this in VBA.
Thanks
[TABLE="width: 164"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]DWB010[/TD]
[TD]DWB010[/TD]
[/TR]
[TR]
[TD]DWB251[/TD]
[TD]DWB251[/TD]
[/TR]
[TR]
[TD]DWB253[/TD]
[TD]DWB253[/TD]
[/TR]
[TR]
[TD]DWB931[/TD]
[TD]DWD860[/TD]
[/TR]
[TR]
[TD]DWD860[/TD]
[TD]DWD860[/TD]
[/TR]
[TR]
[TD]DWD860[/TD]
[TD]DWD861[/TD]
[/TR]
[TR]
[TD]DWD861[/TD]
[TD]DWD862[/TD]
[/TR]
[TR]
[TD]DWD862[/TD]
[TD]DWD911[/TD]
[/TR]
[TR]
[TD]DWD911[/TD]
[TD]DWD912[/TD]
[/TR]
[TR]
[TD]DWD912[/TD]
[TD]DWD913[/TD]
[/TR]
[TR]
[TD]DWD913[/TD]
[TD]DWD914[/TD]
[/TR]
[TR]
[TD]DWD914[/TD]
[TD]DWD915[/TD]
[/TR]
[TR]
[TD]DWD915[/TD]
[TD]DWD920[/TD]
[/TR]
[TR]
[TD]DWD920[/TD]
[TD]DWD922[/TD]
[/TR]
[TR]
[TD]DWD922[/TD]
[TD]DWD966[/TD]
[/TR]
[TR]
[TD]DWD966[/TD]
[TD]DWD966[/TD]
[/TR]
[TR]
[TD]DWD967[/TD]
[TD]DWD967[/TD]
[/TR]
[TR]
[TD]DWD968[/TD]
[TD]DWD968[/TD]
[/TR]
[TR]
[TD]EBO101[/TD]
[TD]EBO101[/TD]
[/TR]
</tbody>[/TABLE]
i need to compare two columns for differences and highlight them; the columns may contain duplicate data.
As example, for the below two columns, DWB931 on column A and DWD966 from column B should be highlighted. Note that there is one DWD966 in column A but two in column B.
i need to do this in VBA.
Thanks
[TABLE="width: 164"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]DWB010[/TD]
[TD]DWB010[/TD]
[/TR]
[TR]
[TD]DWB251[/TD]
[TD]DWB251[/TD]
[/TR]
[TR]
[TD]DWB253[/TD]
[TD]DWB253[/TD]
[/TR]
[TR]
[TD]DWB931[/TD]
[TD]DWD860[/TD]
[/TR]
[TR]
[TD]DWD860[/TD]
[TD]DWD860[/TD]
[/TR]
[TR]
[TD]DWD860[/TD]
[TD]DWD861[/TD]
[/TR]
[TR]
[TD]DWD861[/TD]
[TD]DWD862[/TD]
[/TR]
[TR]
[TD]DWD862[/TD]
[TD]DWD911[/TD]
[/TR]
[TR]
[TD]DWD911[/TD]
[TD]DWD912[/TD]
[/TR]
[TR]
[TD]DWD912[/TD]
[TD]DWD913[/TD]
[/TR]
[TR]
[TD]DWD913[/TD]
[TD]DWD914[/TD]
[/TR]
[TR]
[TD]DWD914[/TD]
[TD]DWD915[/TD]
[/TR]
[TR]
[TD]DWD915[/TD]
[TD]DWD920[/TD]
[/TR]
[TR]
[TD]DWD920[/TD]
[TD]DWD922[/TD]
[/TR]
[TR]
[TD]DWD922[/TD]
[TD]DWD966[/TD]
[/TR]
[TR]
[TD]DWD966[/TD]
[TD]DWD966[/TD]
[/TR]
[TR]
[TD]DWD967[/TD]
[TD]DWD967[/TD]
[/TR]
[TR]
[TD]DWD968[/TD]
[TD]DWD968[/TD]
[/TR]
[TR]
[TD]EBO101[/TD]
[TD]EBO101[/TD]
[/TR]
</tbody>[/TABLE]