Copy rows based on color (conditional formatting)

sharky12345

Well-known Member
Joined
Aug 5, 2010
Messages
3,422
Office Version
  1. 2016
Platform
  1. Windows
I have a sheet called 'Data' which has 20 columns and 10,000 rows.

Each row is formatted, (conditionally), so that they change colour depending on the value of the entry in column B.

For example, if the entry in column B appears only once then the row colour remains white. If it appears twice then the color is yellow and 3 times is red.

Now here's the bit I am stuck on - I need to do 3 things;

1) I need code to identify the rows which are white, then select ONLY the ones which have the cell in column 19 empty and copy them to a 2nd sheet called 'Letter 1'

2) Code to identify the rows which are yellow, then select ONLY the ones which have the cell in column 19 empty and copy them to a 2nd sheet called 'Letter 2'

3) If it is possible, I need code to identify the rows which are red, then select ONLY the ones which have the cell in column 19 empty and copy a screenshot of them to the body of an email message, can this be done?

This is a big ask I know, but I'm sure someone will come up with all or part of the answer!

Thanks in advance!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,224,598
Messages
6,179,814
Members
452,945
Latest member
Bib195

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