+ Reply to Thread
Results 1 to 2 of 2

Change colour of some values in bar chart.

  1. #1
    Forum Contributor
    Join Date
    10-06-2015
    Location
    Leeds, England
    MS-Off Ver
    2010
    Posts
    102

    Change colour of some values in bar chart.

    I have a bar chart that is populated by data in vba code after some calculations have been made. Is there a way to change the colour of the bars that are greater than a maximum y-value? For example if there are 10 bars plotted in the chart and the last 2 bars are over the value of 10, I want to change their colour from green to red. And every time I run the calculations code it will make this check and change the colour if needed.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often 365, but still time to time use also older versions
    Posts
    8,339

    Re: Change colour of some values in bar chart.

    You can do this in the macro by something like:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

+ 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. VBA to change column chart series colour
    By Jabba69 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2014, 11:51 AM
  2. Bubble Chart Colour Change
    By kcarlmusson in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-09-2013, 08:19 AM
  3. Pivot Chart Colour Change
    By TonyforVBA in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-16-2012, 10:25 AM
  4. Colour change column chart based on cell colour
    By Alice21 in forum Excel General
    Replies: 11
    Last Post: 04-05-2011, 10:10 AM
  5. Change colour of chart series
    By downunderthunder in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-06-2010, 09:20 PM
  6. Change the colour of only one legend of a chart
    By Magic_Doctor in forum Excel General
    Replies: 1
    Last Post: 12-03-2007, 08:54 AM
  7. [SOLVED] How do I change the inverse colour in an Excel chart?
    By david_hutton.NO_SPAM in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-21-2005, 09:06 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