Boostez vos compétences Excel avec notre communauté !
Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !
Sub chrono()
depart = Timer
chronoOK = True
If Range("E26") = "" Then MsgBox " Il faut la distance,": Exit Sub
If Not IsNumeric(Range("E26")) Then
MsgBox "Il faut un nombre": Exit Sub
'next
'If Range("E28") = "" Then MsgBox " Il faut le nom des pilotes,": Exit Sub
End If
Range("A1").Value = depart
Application.EditDirectlyInCell = False
Do
Tempsfinal = Timer - depart
TpsInter = Tempsfinal / 86400
Range("D10").Value = TpsInter
If chronoOK = False Then Exit Sub
DoEvents
Loop Until Range("a1").Value = 1
End Sub
voila votre aide me serai d'un grand secours 🙂par Sub enregistrement()
If Range("L2") = "" Then
MsgBox "Aucune donnée à sauvegarder." & vbCrLf & "Lancez une course, enregistrez la lorsqu'elle est terminée", vbApplicationModal, "Enregistrement"
Exit Sub
End If
nom = InputBox("NOM DE LA FEUILLE POUR ENREGISTREMENT DE LA COURSE ", "Enregistrement de la course")
If nom = "" Then Exit Sub
lap = Range("c14").Value
tps = Sheets.Count
Sheets.Add After:=Sheets(tps)
ActiveSheet.Name = nom
Sheets("chrono").Select
Columns("k😛").Select
Selection.Copy
Sheets(nom).Select
Range("b1").Select
ActiveSheet.Paste
Rows("1:1").Select
Application.CutCopyMode = False
Range("b1") = "Pilote"
Range("c1") = "Temps Total"
Range("d1") = "Temps Intermédiaire"
Range("e1") = "Temps/pilote"
Range("f1") = "km/heure"
Range("g1").Select
Columns("a:f").EntireColumn.AutoFit
Columns("A:f").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = False
End With
Range("I15") = 1
Range("B1").Select
Selection.PasteSpecial Paste:=xlPasteValues
Selection.PasteSpecial Paste:=xlPasteFormats
Bonjour à tout le forum , et a toi ZZR09bonjour à tous
voici ma dernière version 😉 modifications de quelques formules dans le récapitulatif, et surtout : lancement et arrêt du chrono avec un seul bouton 😛
A+
If Not Range("D10") = "" Then
If MsgBox("Des données subsistent; voulez vous les conserver?", vbYesNo) = vbYes Then
ligne = Range("L" & Range("L65536").End(xlUp).Row)
depart = Range("C1")
chronoOK = False
Exit Sub
End If
End If
Call initialisation
If ligne = "" Then ligne = 2
If ligne = 2 Then a = Range("l" & ligne).Value Else a = Range("l" & ligne - 1).Value
Range("K" & ligne).Value = Range("I15")
We use cookies and similar technologies for the following purposes:
Est ce que vous acceptez les cookies et ces technologies?
We use cookies and similar technologies for the following purposes:
Est ce que vous acceptez les cookies et ces technologies?