Private Sub Worksheet_Change(ByVal Target As Range)
Dim Cel As Range
For Each Cel In Me.[I6].DirectPrecedents
If Not Intersect(Cel, Target) Is Nothing Then Exit For
Next Cel
If Cel Is Nothing Then Exit Sub
AjouterLigneBD
End Sub
Private Sub AjouterLigneBD()
Dim LRs As ListRows, TVLd(), TVLn(1 To 1, 1 To 3)
Set LRs = WshBDon.ListObjects(1).ListRows
TVLn(1, 1) = Me.[D1].Value
TVLn(1, 2) = Me.[D2].Value
TVLn(1, 3) = Me.[I9].Value
TVLd = LRs(LRs.Count).Range.Value
If TVLd(1, 1) = TVLn(1, 1) And TVLd(1, 2) = TVLn(1, 2) Then Exit Sub
LRs.Add.Range.Resize(, 3).Value = TVLn
End Sub