Force stop automatic color variance in charts

coffield

New Member
Joined
Nov 9, 2017
Messages
2
Hi,

We are trying to create a color theme to restrict the colors Excel to just our branded colors. I know how to change the first 6 colors in a series, but I don't know how to get Excel to stop auto formatting the rest of the colors and just force it to use our branded colors instead. I was thinking maybe I would have to create a macro, but I'm not even sure if that's going in the right direction or if its even possible. Blarg, help!!

-E
 

thisoldman

Well-known Member
Joined
Jan 5, 2014
Messages
1,073
Excel is going to loop through the colors, using the first six accent colors from left to right as it assigns them to each series. It then assigns the seventh through twelfth series to darker shades of the first six accent colors. I forget how it goes on from there—the colors are all variations on the chosen color scheme.

One big drawback with using the color themes is people will change the theme and your carefully chosen palette will disappear.

Chart templates do save the custom colors, but it can be an annoyance to access them: go to Insert >> Recommended Charts then choose the "All Charts" tab and then go hunting for the correct template.

It is possible to assign the templates to buttons on the Quick Access Toolbar with a little VBA. Piquet00 gives a very brief outline of one method in this recent thread: https://www.mrexcel.com/forum/excel-questions/1030258-quickest-access-your-chart-templates.html
 

coffield

New Member
Joined
Nov 9, 2017
Messages
2
Thank you for this!! At least I am not missing anything.

I can't seem to protect the colors as I adjust the chart to match whatever table I am using if it doesn't conform to the color theme. Unfortunately, I just end up with the same problem, templates or not.
 

thisoldman

Well-known Member
Joined
Jan 5, 2014
Messages
1,073
You might be able to adapt one of Jon Peltier's macros for changing series colors. I think I might start with the one listed here, https://peltiertech.com/interactive-formatting-chart-series-with-cells-color/.

The macro is for color selection by the user, but you could change that to use a fixed color for each series by series number. It performs different coloring actions for different chart types. I was impressed with its thoroughness.
 
Last edited:

Forum statistics

Threads
1,081,983
Messages
5,362,551
Members
400,679
Latest member
alecalec202

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top