AnsweredAssumed Answered

How to change a trend start and end time.

Question asked by AChatwin on Nov 30, 2016
Latest reply on Dec 1, 2016 by AChatwin

Hi All,
Please see the code:

 

Option Explicit
Sub CommandButtonUpdateGraphs_Click()
Dim Starttime As Variant
Dim Endtime As Variant

 

Starttime = ThisDisplay.Date1.Value & " " & ThisDisplay.Time1.Value
Endtime = ThisDisplay.Date2.Value & " " & ThisDisplay.Time2.Value
MsgBox Starttime
MsgBox Endtime

TrendB1WingValvePosition.SetTimeRange Starttime, Endtime

'This doesn't work
TrendB1WingValvePosition.SetTimeRange Starttime, Endtime

'This doesn't work
End Sub

 

The Msgbox are correctly reading the output of the time selection boxes but I am unable to enter the correct details for a trend to change its starting and end point. This would make it easier for the guys to be able to change all graphs at once.


Any one able to indicate what I am doing wrong. This doesn't work. Some assistance would be great.

 

Regards,

 

Alex

Outcomes