How to color a cell, by the color next to it.

TheMacroMan

New Member
Joined
Jun 26, 2014
Messages
15
I have a long 1000+ row of data that I am checking. My program colors incorrect cells red and blank cells orange. I need to be able to set the colors back to the original values. Is there a way that I could take the color one column (to the left of right) and use it to color the correct cells? If it changed anything (don't think it does) this is in excel 2010
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Highlight the column that has the correct colors. From the Home Tab click on the paint brush (Format Painter) in the clipboard section, then highlight the column you want to have the corrected colors.

So if it were B and C

Click on the B to highlight the column, Click on the paint brush, click on C to highlight that column. Done
 
Upvote 0
In VBA you would paste as formats.

Code:
Columns("B").Copy
Columns("C").PasteSpecial xlPasteFormats
Application.CutCopyMode = False
 
Upvote 0
Highlight the column that has the correct colors. From the Home Tab click on the paint brush (Format Painter) in the clipboard section, then highlight the column you want to have the corrected colors.

So if it were B and C

Click on the B to highlight the column, Click on the paint brush, click on C to highlight that column. Done
Thanks, but this is for some people who have not used excel before. I would like something that I can set up as a button.
 
Upvote 0

Forum statistics

Threads
1,214,973
Messages
6,122,534
Members
449,088
Latest member
RandomExceller01

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