Format color of a 3D barchart bar based on catagory name

  • I have a 3D stacked Bar chart where each day I sort the bars in descending order based on the sum of the two series. I need one of the catagories to ALWAYS remain the same blue color however whenever I sort the catagory color often changes. It seems that the ActiveChart.SeriesCollection(1).Points(x) is always tied to a specific number. I want to make it dependant on the catagory name. Please refre to attached.

  • Re: Format color of a 3D barchart bar based on catagory name


    Wow you really went all out on this one - thanks. If possible I'd really like to keep it simple with solid fill colors rather than pictures. I'd also like to take advantage of the MSO accent colors, eg. Any ideas? Thanks again


  • Re: Format color of a 3D barchart bar based on catagory name


    Hello Danielle,


    Welcome to Ozgrid. While we are glad to have you on-board, please take time to read the forum rules.


    Per the Forum Rules, VBA code must be wrapped in code tags, which you omitted.
    I've added the tags for you this time; please be sure to use them in future posts when needed.


    See the link in my signature for more information on how to use tags.



    [COLOR="navy"]How to use code tags[/COLOR]
    [noparse]

    Code
    [/noparse]
    [COLOR="blue"]Your code goes between these tags[/COLOR]
    [noparse]

    [/noparse]


    Thanks.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!