Asked • 05/14/19

Change the text color of the chart title in a PowerPoint Histogram chart?

I am trying to change the text color of the chart title of a histogram chart in PowerPoint. Here is what I do: var colorFormat = chart.ChartTitle.Format.TextFrame2.TextRange.Font.Fill.ForeColor; colorFormat.RGB = ...; // or colorFormat.ObjectThemeColor = ...; This works for the standard charts like line charts. But it doesn't work for other chart types like histogram, waterfall, tree map etc. In these cases, setting `ObjectThemeColor` sets the text to black. Setting `RGB` does actually set the correct color. However, in both cases, as soon as the user changes the selection, the text color jumps back to the one it had previously. How can I set the text color of the title of one of these charts? I am using VSTO and C# but a VBA solution is just as welcome as long as it can be translated to C# and still work.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.