Hey guys,
Please see my sample data below. The data could be in any columns.
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]1[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]c[/TD]
[/TR]
</tbody>[/TABLE]
I want to have a macro that highlight (using interior color) the data in the first column (any column) based on the duplicates data from the other column (any column). The macro should work in following steps.
After selecting the data in first column I run the macro.
I enter the column number for the column having duplicate entries, in an inputbox
The macro generate the following output
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]1[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]3 red[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]4 red[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]6 red[/TD]
[TD]c[/TD]
[/TR]
</tbody>[/TABLE]
I hope my requirement is clear. Thank you in advance.
Please see my sample data below. The data could be in any columns.
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]1[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]c[/TD]
[/TR]
</tbody>[/TABLE]
I want to have a macro that highlight (using interior color) the data in the first column (any column) based on the duplicates data from the other column (any column). The macro should work in following steps.
After selecting the data in first column I run the macro.
I enter the column number for the column having duplicate entries, in an inputbox
The macro generate the following output
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]1[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]3 red[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]4 red[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]6 red[/TD]
[TD]c[/TD]
[/TR]
</tbody>[/TABLE]
I hope my requirement is clear. Thank you in advance.