Private Sub Worksheet_Change(ByVal Target As Range)
Dim cel As Range, lg1&, lg2&
With Target
If .CountLarge > 1 Then Exit Sub
If .Column <> 7 Then Exit Sub
lg1 = .Row: If lg1 < 10 Then Exit Sub
Set cel = .Offset(, 3): Application.ScreenUpdating = 0
If .Value <> "Terminé" Then
Application.EnableEvents = 0: cel.ClearContents: [A10].Resize(, 12).Insert 2, 1
With Cells(lg1 + 1, 1).Resize(, 12): .Copy [A10]: .Delete 3: End With
[G10].Select: Application.EnableEvents = -1: Exit Sub
End If
End With
Application.EnableEvents = 0: cel = Date: lg2 = Cells(Rows.count, 7).End(3).Row + 1
With Cells(lg1, 1).Resize(, 12): .Copy Cells(lg2, 1): .Delete 3: End With
Cells(lg2 - 1, 7).Select: Application.EnableEvents = -1
End Sub