1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Public ProchainChrono, Départ
Sub Demarre()
Départ = Timer()
majChrono
End Sub
Sub majChrono()
Sheets("Feuil1").[F3] = Format((Timer() - Départ) / 3600 / 24, "hh:mm:ss")
ProchainChrono = Now + TimeValue("00:00:1")
Application.OnTime ProchainChrono, "majChrono"
End Sub
Sub Arret()
On Error Resume Next
Application.OnTime ProchainChrono, Procedure:="majChrono", Schedule:=False
Sheets("Feuil1").Range("F3").Copy
With Sheets("Feuil1")
.Range("H3").PasteSpecial Paste:=xlPasteValues
End With
Application.CutCopyMode = False
Range("I3") = Time
Range("J3") = Range("I3") - Range("E3")
End Sub |
Partager