I don't understand what you are saying, it's contradictory -
"the color assigned to trendline is not exactly same as it's data series
color"
vs
"the RGB was giving me exactly same color as the parent data series line"
If you have standard line type charts with lines in default colours, the
macro I posted should format trendlines with same colour as the "automatic"
colour or the customized colour of the parent series line.
If your charts are not "typical" eg mixed with bar type and line type
series, or has been modified in certain other ways, the macro (as posted)
will give incorrect results
Regards,
Peter T
"satishbhave" wrote in message
...
Thanks Peter, it does work for all trendlines but the color assigned to
trendline is not exactly same as it's data series color. the RGB was
giving
me exactly same color as the parent data series line compared to
COLORINDEX
color...any suggestions ?
-satish
"satishbhave" wrote:
I want to change the trendlines color/type/width to match the data
series
line color. i have this vb code which works well and changes type and
width
but not color. what i found was that to make this work, first, i need to
manually change the color of trendlines and then run the macro.. i don;t
know
if this is a bug or something i am not doing properly