1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim Ligne As Variant
If Sh.Name = "Secteur1" Then
If Intersect(Target, Range("E10,K10,E16")) Is Nothing Then Exit Sub
If Target.Value = "CHOISIR" Then Exit Sub
Ligne = Application.Match(Target.Value, [Equipe1!B:B], 0)
Application.EnableEvents = False
If IsNumeric(Ligne) Then
With Sheets("Equipe1")
.Cells(Ligne, 5).Value = .Cells(Ligne, 5).Value + 1
.Cells(Ligne, 7).Value = Date
End With
End If
Application.EnableEvents = True
End If
End Sub |
Partager