+ Reply to Thread
Results 1 to 6 of 6

Change shape colour based on cell value

  1. #1
    Forum Contributor
    Join Date
    01-28-2019
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    160

    Change shape colour based on cell value

    How to change the colour of shape based on cell value such as Correct and Incorrect?

  2. #2
    Registered User
    Join Date
    05-12-2021
    Location
    Europe
    MS-Off Ver
    365
    Posts
    45

    Re: Change shape colour based on cell value

    I dont think you can achieve this without macros / vba

    This is the code that does what you asked:
    Please Login or Register  to view this content.
    You can change the shape name in the up left box
    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
    Attached Files Attached Files

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Change shape colour based on cell value

    @ 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.

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,401

    Re: Change shape colour based on cell value

    ALT + F11
    Place the following code in the active worksheet

    HTML Code: 
    Attached Files Attached Files
    Last edited by wk9128; 07-30-2021 at 12:28 AM.

  5. #5
    Forum Contributor
    Join Date
    01-28-2019
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    160

    Re: Change shape colour based on cell value

    Thank you everyone who help me

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,401

    Re: Change shape colour based on cell value

    You're Welcome. Thank You for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Change Shape Fill colour based on cells values.
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-26-2020, 09:21 AM
  2. [SOLVED] Using VBA to change the colour of a shape to match cell text
    By EdRooney in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-16-2019, 09:22 AM
  3. Replies: 6
    Last Post: 04-11-2016, 09:48 AM
  4. [SOLVED] Change Shape colour based on criteria
    By aliaslamy2k in forum Excel General
    Replies: 8
    Last Post: 03-13-2016, 12:57 PM
  5. Change shape colour dependent on cell value
    By BRISBANEBOB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2014, 07:44 AM
  6. Excel VBA code to automatically change colour shape based on time
    By afzal_u1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-28-2013, 10:28 AM
  7. How to change a 'shape' foreground colour based on a cell contents
    By Farmboyuk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-13-2012, 10:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1