Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
DL = Range("A65500").End(xlUp).Row
If Not Intersect(Target, Range("A4:F" & DL)) Is Nothing Then
If Cells(Target.Row, "B") <> "" And Cells(Target.Row, "F") <> "" Then
Dossard = Cells(Target.Row, "B")
Classe = Cells(Target.Row, "E")
Temps = Cells(Target.Row, "F")
With Sheets(Classe)
Présent = Application.CountIf(.[A:A], Dossard)
If Présent = 0 Then
Ligne = 3 + .Range("A3:A100").End(xlUp).Row
Else
Ligne = Application.Match(Dossard, .Range("A:A"), 0)
End If
.Cells(Ligne, "A") = Dossard: .Cells(Ligne, "F") = Temps
End With
End If
End If
End Sub