Hi, I ' ve been trying to set the parameter values of a trend line in a chart with VBA
I was able to set the minimum and maximum values of the Y value of the chart with this, in the onActivate event of the form :
What could I add here so that the number of days of the trend line moving average, would be the result of : Int(myVar *0,1)
Thanks
I was able to set the minimum and maximum values of the Y value of the chart with this, in the onActivate event of the form :
Code:
Dim objChart1 As Object
Dim objAxis1 As Object
Dim max As Variant, min As Variant
myVar=80
Set objChart1 = Me.GraphFX.Object
max = CDbl(replace(DMax("plaEmpata", "line3w"), ".", ","))
min = CDbl(replace(DMin("plaEmpata", "line3w"), ".", ","))
Set objAxis1 = objChart1.Axes(2)
objAxis1.MaximumScale = max * 1.005
objAxis1.MinimumScale = min * 0.99
What could I add here so that the number of days of the trend line moving average, would be the result of : Int(myVar *0,1)
Thanks