+ Reply to Thread
Results 1 to 2 of 2

VBA for changing a chart point color based on its label

  1. #1
    Registered User
    Join Date
    11-08-2019
    Location
    Bulgaria
    MS-Off Ver
    365/2016
    Posts
    2

    VBA for changing a chart point color based on its label

    Hello!

    I'm in need for macro that changes colors in chart with external table as reference. Current excel document hold about 10 doughnut graphics and want to have them with the same colors.
    I found out the code bellow and it's almost what i need.
    The main problem is that macro change only the first year. (inside ring)

    doughnut.PNG

    Can you help what should be changed for both of them to work properly?

    Please Login or Register  to view this content.
    Thank you very much!

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: VBA for changing a chart point color based on its label

    You'd need to loop through the chart series, instead of just using series 1:

    Please Login or Register  to view this content.
    Rory

+ 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. Changing the color of the bars in a Gantt chart based on a value
    By jeannelacombe in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-07-2018, 04:28 PM
  2. change chart color based on point
    By sarinky in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-27-2015, 12:45 AM
  3. [SOLVED] Changing background label color on chart
    By wrybel in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-25-2015, 08:03 AM
  4. make chart label color same color as data point
    By desertsp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2013, 05:02 PM
  5. Changing Label Color For Select Labels On Stacked bar Chart
    By John Vieren in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-12-2009, 07:33 AM
  6. Adding a label to a data point in a chart??
    By Fish in forum Excel General
    Replies: 1
    Last Post: 03-13-2006, 07:25 PM
  7. Changing chart color based on number entered
    By confused chart girl in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-27-2005, 01:05 PM

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