Bonjour,
Pas du tout sûr que ce soit optimal en passant par du VBA pour ce genre de manip (et encore moins sûr de mon code) car si vous supprimez des lignes vous risquez d'avoir un bordel monstre car je l'ai pas envisagé mais bon pour l'exercice :
Private Sub Worksheet_Change(ByVal Target As Range)
Dim LR_T_1%, LR_T_2%
LR_T_1 = ListObjects(1).DataBodyRange.Rows(ListObjects(1).DataBodyRange.Rows.Count).Row
LR_T_2 = ListObjects(2).Range.Rows.Row - 2
If Not Application.Intersect(Rows(LR_T_1 & ":" & LR_T_1 + 5), Target) Is Nothing Then
Application.EnableEvents = False
If Target.Rows(1).Value <> "" Then
Range(Cells(LR_T_2 - Selection.Rows.Count, 1), Cells(LR_T_2 - 1, 1)).EntireRow.Insert xlDown
End If
Application.EnableEvents = True
End If
End Sub
Cdlt,