cations
asked on
Adding a Trend line to a Series in a Graph in MS Access VBA
Hello Access Gurus
I want to add a trend line to my graph programatically. This is how Excel does it but this syntax does not work in MS Access.... thank you so much.
Set chartobj = ![AnalysisGraph].Object.Ap plication. Chart
chartobj.SeriesCollection( 1).Select
chartobj.SeriesCollection( 1).Trendli nes.Add(Ty pe:=xlLine ar, Forward:=0, _
Backward:=0, DisplayEquation:=False, DisplayRSquared:=False).Se lect
chartobj.SeriesCollection( 1).Trendli nes(1).Sel ect
With Selection.Border
.ColorIndex = 57
.Weight = xlThin
.LineStyle = xlDot
End With
I want to add a trend line to my graph programatically. This is how Excel does it but this syntax does not work in MS Access.... thank you so much.
Set chartobj = ![AnalysisGraph].Object.Ap
chartobj.SeriesCollection(
chartobj.SeriesCollection(
Backward:=0, DisplayEquation:=False, DisplayRSquared:=False).Se
chartobj.SeriesCollection(
With Selection.Border
.ColorIndex = 57
.Weight = xlThin
.LineStyle = xlDot
End With
ASKER
chartObj.SeriesCollection( 1).Trendli nes.Add Type:=xlLinear
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER