ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   xlPolynomial trendline (https://www.excelbanter.com/excel-programming/380860-re-xlpolynomial-trendline.html)

Mike Middleton

xlPolynomial trendline
 
Mitch -

The usual "trick" is to turn on the macro recorder and go through the steps
of adding the cubic trendline.

In Excel 2003, it works for me, yielding Order:=3 in addition to your
current code.

- Mike
http://www.mikemiddleton.com

"Mitch" wrote in message
...
I am trying to create a cubic trendline (e.g. x^3 +x^2+x+1) in a chart
using
VBA. I can create a quadratic trendline (e.g. x^2+x+1) using
"ActiveChart.SeriesCollection(1).Trendlines.Ad d Type:=xlPolynomial". I
haven't been able to find how to create the cubic trendline. Does anyone
know the trick?





All times are GMT +1. The time now is 12:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com