VBA to pull out all colored cells from a row to a different sheet

nc_waggoner

New Member
Joined
Sep 2, 2016
Messages
21
Good morning. I will try and explain this as thoroughly as possible. I have a sheet with Dates as rows and test locations as columns (just fyi...there are about 275 columns of testing points). It is conditionally formatted so anything out of control gets highlighted in red as seen on 6/5. Please note that these will also be values, I just wanted to give a couple examples to extract. What I am looking for is a way to type in a date in the selection cell (call it B1...Date starts at A3 for reference) and pull out all columns that are highlighted in red for that day on a separate sheet...in the below example this would be Locations 1 & 3. It is basically like a daily report to show which locations need attention. For this purpose, let's say this is on "Sheet 1" and I would like it to display on "Sheet 2".

SELECTION6/5/2017
DATELOCATION 1LOCATION 2LOCATION 3LOCATION 4
6/1/201710101010
6/2/201710101010
6/3/201710101010
6/4/201710101010
6/5/2017RED10RED10
6/6/201710101010
6/7/201710101010
6/8/201710101010

<tbody>
</tbody><colgroup><col><col span="4"></colgroup>
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How is/should the data be arranged on Sheet2? Are there Location headers there and do the values go in the same Location column they currently are in? Or do you just want the values placed next to each other no matter what columns they came from?
 
Last edited:
Upvote 0
Great question...I have not finalized the report format. But if possible I would imagine just a list of the Locations in a vertical format, for example in Column A on sheet 2:

A1 6/5/2017
A2
A3 Location 1
A4 Location 3
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,796
Members
449,095
Latest member
m_smith_solihull

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