How do I determine the color of a cell equal to another, example:
A4 is then C2 is cyan color cyan.
A2 is then C2 orange color is orange.

How do I determine the color of a cell equal to another, example: A4
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no excel-formula to get you the color of a cell, nor is there one, to set the color of a different one.
However, you can make a function to get the color of a specific cell – or, like in my example, the color of the function-calling cell:
Now you might, think, ok then I modify this, just to SET the color too. But no – does not work that way. In order to change a cells color, you would have to use
Worksheet_Changeevent and setup each cell to the long value inside them as their color.Would be the line for that, when using
Worksheet_Change.You can of course use
ColorIndexas well – just adapt accordingly.