Hi all.
What i am trying to do is set the x scale (hours) of a TrendX object to match a production run time which is stored in a Tag.
If anyone has a better idea of how to do this i would appreciate it
We have this little vba script from the help files which we cannot get to work...........
Private Sub ViewOneMinute()
Dim x As XAxis
Dim s As String
Set x = RStrendX1.XAxis
s = "Time Span was " & x.Timespan & " seconds"
MsgBox s, vbOKonly
x = TimeSpan = 60
End Sub
What we have done is the following
Public Sub K22_Chart() 'rsview wouldnt see the the vba script to run it when it was private
Dim x As Xaxis <---- says user defined type not defined.
We cant get past this... Is there any other way?
What i am trying to do is set the x scale (hours) of a TrendX object to match a production run time which is stored in a Tag.
If anyone has a better idea of how to do this i would appreciate it
We have this little vba script from the help files which we cannot get to work...........
Private Sub ViewOneMinute()
Dim x As XAxis
Dim s As String
Set x = RStrendX1.XAxis
s = "Time Span was " & x.Timespan & " seconds"
MsgBox s, vbOKonly
x = TimeSpan = 60
End Sub
What we have done is the following
Public Sub K22_Chart() 'rsview wouldnt see the the vba script to run it when it was private
Dim x As Xaxis <---- says user defined type not defined.
We cant get past this... Is there any other way?