How to display linear trendline equation in scientific notation using VBA?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prashantdixit
    New Member
    • Jun 2010
    • 36

    #1

    How to display linear trendline equation in scientific notation using VBA?

    Hi,

    I am trying to generate Linear Trendline Equation for a graph using VBA in Excel 2007.
    I am able to do it. However It always generate trendline equation in "General" Format.

    And i want to display linear trendline equation oin graph in "scientific notation" upto 5 decimal places using VBA code.

    The code which i have written for generating Linear Trendline Equation is:

    Code:
    ActiveChart.SeriesCollection(1).Trendlines.Add Type:=xlLinear, Name:="Linear Trend (QCM Frequency Rate)", Forward:=0, Backward:=0, DisplayEquation:=True, DisplayRSquared:=False


    Anyhelp would be highly appreciated

    Thanks
    Prashant Dixit
Working...