+ Reply to Thread
Results 1 to 4 of 4

Change color of chart based on category name

  1. #1
    Registered User
    Join Date
    04-11-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    18

    Change color of chart based on category name

    Hello,

    I am trying to get the chart color to change automatically based on the series name and their given color format. I have found several sources of instructions on Google but the code doesn't seem to work.

    The first result had a code as below:
    Excel 2007 and later:
    Please Login or Register  to view this content.
    Can anyone please give me some suggestions as to how to correct the code (already in the excel) and apply it to my sheet?

    Thank you!
    Attached Files Attached Files
    Last edited by Frankximus3; 08-03-2017 at 06:10 AM.

  2. #2
    Registered User
    Join Date
    04-11-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    18

    Re: Change color of chart based on category name

    Thanks for your feedback AliGW,

    I have updated as instructed.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Change color of chart based on category name

    Code works if the chart is selected

    If you want the code to work without the chart being selected you can change the code slightly.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    04-11-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    18

    Re: Change color of chart based on category name

    Thank you sincerely Andy, you solved my mystery!

+ 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 chart color based on point
    By sarinky in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-27-2015, 12:45 AM
  2. Change Bar Chart Color Based on Series Name Using VBA
    By Swishmak3r in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-24-2015, 07:34 PM
  3. Changing a pivot chart column color based on the pivot table category
    By Shawne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2014, 09:12 AM
  4. [SOLVED] Possible to change color of a bar chart based on it's value?
    By Consty1 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-13-2013, 02:17 PM
  5. How to change color of each X category Axis.
    By gohan123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 09:00 AM
  6. Replies: 1
    Last Post: 06-26-2012, 10:02 AM
  7. [SOLVED] Color Change in chart based of condition
    By KRT in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-01-2005, 08:05 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