Thanks. It worked. One more question, I want to make my trendline color red.
I used the Border property and set the colorindex = 255. But excel does not
like it. I have only one trendline. How can I do that?
Colorindex refers to one of the (pre 2007) 56 palette colours (1-56) or
system black
When applying a Long RGB colour it will match to the closest colour that
already exists in the palette. (red 255 of course exists in a default
palette).