How to change the colour of shape based on cell value such as Correct and Incorrect?
How to change the colour of shape based on cell value such as Correct and Incorrect?
I dont think you can achieve this without macros / vba
This is the code that does what you asked:
You can change the shape name in the up left boxPlease Login or Register to view this content.
shape name.png
Here's a list of vba color names if you dont want to use rgb:
vba-vb-color .jpg
I also attached a file with the example you asked
@ iustin
Administrative Note:
You need to include code tags around your code.
Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.
Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(Note: this change is not optional. I have done it for you today.)
Please update your location in your profile as requested in your own thread. Thanks.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
ALT + F11
Place the following code in the active worksheet
HTML Code:
Last edited by wk9128; 07-30-2021 at 12:28 AM.
Thank you everyone who help me
You're Welcome. Thank You for the feedback
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks