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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top