color row according for matching values in a column

Dimitris254

Board Regular
Joined
Apr 25, 2016
Messages
139
i'm looking for a vba macro solution (not conditional formatting) to color a row, if there is a match with a value in another column

to be more precise:

- in worksheet 1 i have hundreds of rows, with each row having ~10 columns of product-related info, one being "product name" in column C
- in column A in worksheet 2, i have a list of product names
- the macro would check each name in column A of worksheet 2 against all the rows in worksheet 1, and for every match, it colors the whole row

the products in worksheet 2 are far less than the full range, so the end result would be a worksheet 1 with only a few rows colored
 

Some videos you may like

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Watch MrExcel Video

Forum statistics

Threads
1,122,511
Messages
5,596,576
Members
414,079
Latest member
Frills

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
Top