Duplicate check with VBA code

jgopalk

New Member
Joined
Jun 14, 2011
Messages
26
Hi All,

I wanted to create <acronym title="visual basic for applications" style="border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: dotted; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(0, 0, 0); border-left-color: initial; border-image: initial; cursor: help;">VBA</acronym> code for highlighting duplicate words in Sheet 2 with refer to sheet 1. Sheet 1 has master list. Sheet 2 has minimum values, which has to be compared and highlighted if any word found in sheet 1.

Example:
Sheet 1
Jasmine
Lotus
Lilly
Ladies finger
Carrot
Bird of Paradise

<tbody>
</tbody>


Sheet 2:
Jasmine
Ladies
Paradise
Blue bell
Jack fruit

<tbody>
</tbody>


After macro, answer should be:
Sheet 2:

Jasmine
Ladies
Paradise
Blue bell
Jack fruit

<tbody>
</tbody>



Note: Dupe does not need to be a exact one. For example, Master list has "Ladies finder", but in my sheet 2 i have added "Ladies" alone and it also should be highlighted.

Thanks in advance for your time in this.

Gopal​





 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,195
Latest member
Stevenciu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top