문제

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