Vindicator
Registered User.
- Local time
- Today, 06:59
- Joined
- Apr 8, 2009
- Messages
- 15
Hi There,
I am using MS Access. I am trying to obtain the value of the trendline equation from a chart. The chart is premade and on a split form. I have been trying to obtain the equation using VBA. The best way may be to use the MS Excel reference library or the graph library. Yet all my attempts have failed.
Thus far, the best examples i have found are like what follows:
Dim FevChart As Excel.Chart
Set FevChart = Me!NameofChart.Object
Or
Dim MyTrendline as Trendline
Set Trendline = ?????
I have also come across this coding on this forum, but I believe this pertains to excel not Access:
Function TrendFunction(yRange(), xRange(), xNew, tLine As Boolean)
I am using MS Access. I am trying to obtain the value of the trendline equation from a chart. The chart is premade and on a split form. I have been trying to obtain the equation using VBA. The best way may be to use the MS Excel reference library or the graph library. Yet all my attempts have failed.
Thus far, the best examples i have found are like what follows:
Dim FevChart As Excel.Chart
Set FevChart = Me!NameofChart.Object
Or
Dim MyTrendline as Trendline
Set Trendline = ?????
I have also come across this coding on this forum, but I believe this pertains to excel not Access:
Function TrendFunction(yRange(), xRange(), xNew, tLine As Boolean)
Dim TrendArray
TrendArray = Excel.WorksheetFunction.Trend(yRange, xRange, xNew, tLine)
TrendFunction = TrendArray(1)
End FunctionTrendArray = Excel.WorksheetFunction.Trend(yRange, xRange, xNew, tLine)
TrendFunction = TrendArray(1)