add this macro code 1st.
In developer mode, grab a button (not the Active X one) place on form, it will ask what macro, pick STARTTIMER
F9 once the timer starts to refresh the times.
Sub StartTimer()
Dim h, n, s, vStart
'h1 has the current time
'h2 has the time we started
'A has names
'B has time in h:m:s
'this will fill value:
'C = end time
'D = remain time =C2-$H$1
vStart = Range("h1").Value
Range("h2").Value = vStart
Range("A2").Select
While ActiveCell.Value <> ""
If ActiveCell.Offset(0, 1).Value <> "" Then
h = Hour(ActiveCell.Offset(0, 1).Value)
n = Minute(ActiveCell.Offset(0, 1).Value)
s = Second(ActiveCell.Offset(0, 1).Value)
vEnd = DateAdd("h", h, vStart)
vEnd = DateAdd("n", n, vEnd)
vEnd = DateAdd("s", s, vEnd)
ActiveCell.Offset(0, 2).Value = vEnd
End If
ActiveCell.Offset(1, 0).Select 'next row
Wend
End Sub
Bookmarks