Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Call ShowTimes("7:00", "9:00", 30)
Private Sub ShowTimes(ByRef StartTime As String, ByRef StopTime As String, ByRef Interval As Integer)
Dim dtStop As Date
Dim dt As Date
dt = CDate(StartTime)
dtStop = CDate(StopTime)
Debug.Print dt
Do While dt <= dtStop
dt = DateAdd("n", Interval, dt)
If dt > dtStop Then Exit Do
Debug.Print dt
Loop
End Sub
Dim DA As Date, A As Date
Dim D As Long
DA = Date
A = Date + 120
For D = DA To A Step [red]30[/red]
Debug.Print CDate(D)
Next D