Conditional Macro to Copy & Past Values if Cell Fill Color is Yellow

Brendenh

New Member
Joined
Feb 29, 2012
Messages
1
Hi All...

Background:
I have a workbook with multiple sheets that require users input.
Every Sheet is full of formulas that total groups of cells or reference cells in other sheets.

The Cells where users input data are highlighted in yellow (Fill Color).
The remaining Cells in the sheets are white.

I need a Macro that can identify the cell color of the sheet, and if it is yellow, then copy and paste special values over the yellow cells.

Any Ideas?

What I've tried:
I created various "Recorded" Macros that go to the individual sheets, select the specific (Color Coded) ranges then copy and paste special values on the yellow blocks.
This works well, however it does not suit my needs because users will sometimes delete or add rows according to their requirements and because my "Range" is specific, I miss colored rows that should be copy and pasted, and I copy and paste formulas in No Color Fill Cells that shouldn't be changed :(

Any and all help will be greatly appreciated. ;)

Kind regards,
Brenden
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,223,275
Messages
6,171,122
Members
452,381
Latest member
Nova88

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