ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   conditional formatting w/ color as input vs output (https://www.excelbanter.com/excel-worksheet-functions/122272-conditional-formatting-w-color-input-vs-output.html)

tom

conditional formatting w/ color as input vs output
 
There is a lot of info on how to change a cells color with conditional
formatting function. Is it possible to do the opposite? That is, can the
cells color be used as the input instead of a cell value? example, If cell A
is shaded blue, then roll B will be shaded orange.

John Bundy

conditional formatting w/ color as input vs output
 
You can do this through code but not conditional formatting.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Tom" wrote:

There is a lot of info on how to change a cells color with conditional
formatting function. Is it possible to do the opposite? That is, can the
cells color be used as the input instead of a cell value? example, If cell A
is shaded blue, then roll B will be shaded orange.


HelloMoto

conditional formatting w/ color as input vs output
 
What is the code for this? Hopefully it's a short one.

"John Bundy" wrote:

You can do this through code but not conditional formatting.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Tom" wrote:

There is a lot of info on how to change a cells color with conditional
formatting function. Is it possible to do the opposite? That is, can the
cells color be used as the input instead of a cell value? example, If cell A
is shaded blue, then roll B will be shaded orange.


John Bundy

conditional formatting w/ color as input vs output
 
Use color index, something like this depending what you want
If Cells(1, 1).Interior.ColorIndex = 8 Then Cells(1, 2) = "Accounting"

if you want to test first
cells(1,1).interior.colorindex=8

--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"HelloMoto" wrote:

What is the code for this? Hopefully it's a short one.

"John Bundy" wrote:

You can do this through code but not conditional formatting.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Tom" wrote:

There is a lot of info on how to change a cells color with conditional
formatting function. Is it possible to do the opposite? That is, can the
cells color be used as the input instead of a cell value? example, If cell A
is shaded blue, then roll B will be shaded orange.



All times are GMT +1. The time now is 05:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com