+ Reply to Thread
Results 1 to 2 of 2

Changing Bar Colors in Chart with VBA

Hybrid View

  1. #1
    Registered User
    Join Date
    07-16-2015
    Location
    england
    MS-Off Ver
    2010
    Posts
    8

    Changing Bar Colors in Chart with VBA

    Hi,

    I am trying to change bar colour as per value(marks).

    if bar value = 0-60 then bar should be red
    if bar value = 61 - 79 then bar should be AMBER
    if bar value = 80> then bar should be GREEN

    I have wright one code but its not working

    its colouring to every bar.i have attached excel file with query


    Please help me,advanced thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,293

    Re: Changing Bar Colors in Chart with VBA

    Visit this page:

    http://peltiertech.com/vba-condition...arts-by-value/
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. Replies: 3
    Last Post: 10-21-2015, 03:51 PM
  2. ComboBox Chart Changing colors
    By kasharis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2014, 06:39 PM
  3. Replies: 0
    Last Post: 08-07-2012, 03:54 PM
  4. Replies: 1
    Last Post: 07-12-2006, 01:40 PM
  5. HOW TO CREATE A BUBBLE CHART WITH CHANGING COLORS?
    By Hector in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-14-2006, 12:45 PM
  6. [SOLVED] Changing Chart Colors
    By DK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2005, 09:05 AM
  7. Replies: 1
    Last Post: 03-02-2005, 10: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