+ Reply to Thread
Results 1 to 3 of 3

Color Bar Graph Based on Color of Cell

  1. #1
    Registered User
    Join Date
    04-18-2022
    Location
    Atlanta
    MS-Off Ver
    Office 365
    Posts
    2

    Post Color Bar Graph Based on Color of Cell

    Hello all -

    Hoping to get some assistance from the resident experts. I want to color code a bar chart based on the color of the cell. I have the following code and it works fine with the following exception: when I add a conditional formatting for a cell based a value, the color will change based on that value. When I execute the code, the bar graph will not change color. The only time the color will change is when I use the 'fill color' option. Any help is greatly appreciated.

    Here is the code:

    Please Login or Register  to view this content.
    Last edited by AliGW; 04-29-2022 at 10:55 AM. Reason: Code tags corrected.

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Color Bar Graph Based on Color of Cell

    You should be able to use DisplayFormat for conditionally formatted cells:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    04-18-2022
    Location
    Atlanta
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Color Bar Graph Based on Color of Cell

    That worked. Thank you sir and have a great weekend

+ 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. change background textbox color based on text color in cell
    By atadaliran in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2021, 05:34 AM
  2. Replies: 1
    Last Post: 09-18-2018, 04:57 PM
  3. Change cell format (cell color+font color) based on color of another cell
    By Dedaluss in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2017, 03:27 AM
  4. [SOLVED] change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  5. VBA / Macro help needed to change the barchart color based on Cell Color
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2012, 09:15 AM
  6. Change color of pie in a graph based on cell value
    By sa02000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2008, 09:21 AM

Tags for this Thread

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