Conditional format to highlight duplicates Can't manipulate the data based on fill color

bteddy1

New Member
Joined
Jun 27, 2020
Messages
8
Office Version
  1. 2010
Platform
  1. Windows
Hello,
I took data and conditionally formatted it to highlight-duplicates.
I see the dups and the yellow fill with red fonts.
When I try to write code to manipulate the data based on the fill color yellow all the data is treated the same.
When I wrote macros to verify the cell color
only (16777215, ffffff, -4142, d2efff) which are empty/no color/no fill) codes.

What is "conditional formatting" changing when it sets the fill color?? So I can reference it in code.

Thank You
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Welcome to MrExcel!

Looking for conditional formatting via VBA is tricky. Somewhere I have some code to look for it, which is pretty complicated and not reliable. However, since you have Excel 2010, you should be able to use the DisplayFormat method to see what the color is. Look here:

 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,161
Members
449,295
Latest member
DSBerry

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