Question

I have a chart Series (referenced by the variable sr). If I execute

sr.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorAccent2

(=6), then I get

? sr.Format.Line.ForeColor.ObjectThemeColor
  0

How is this possible?

The line assigning msoThemeColorAccent2 does its job, i.e., the color is changed correctly.

PS: This is a more specific question, derived from this one.

Was it helpful?

Solution

I reproduced the bug in 32-bit Excel 2007, 2010, and 2013. I then reported it to the person at Microsoft who maintains the bug tracker.

My guess is that this will receive a "won't fix" type of response, but perhaps they will get to it in the next version of Excel.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top