![]() |
straight line connecting first and last point on a chart
Hello,
I'm familiar with VBA, charts and trendlines but I'm looking for a way to add a straight line to a xlXYScatter chart, connecting the first and last points of a series. Just to visually compare it to a linear trendline. I'd be very grateful for any suggestion. Thanks, Herman |
straight line connecting first and last point on a chart
why not add a new series with the first and last points as the only members.
-- Regards, Tom Ogilvy wrote in message oups.com... Hello, I'm familiar with VBA, charts and trendlines but I'm looking for a way to add a straight line to a xlXYScatter chart, connecting the first and last points of a series. Just to visually compare it to a linear trendline. I'd be very grateful for any suggestion. Thanks, Herman |
straight line connecting first and last point on a chart
Thanks Tom, You helped me a lot. That's indeed all it took : .SeriesCollection.NewSeries .SeriesCollection(2).XValues = "={0,365}" .SeriesCollection(2).Values = "={0," & S & "}" where S is the last point's value. Sometimes it is so simple that it is overlooked. |
All times are GMT +1. The time now is 07:12 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com