Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
Dim Nf$, Liste, Continuer As Boolean, i As Long, lgn As Long, Lr As Long, Rép
Dim Lo As ListObject
Liste = [_Tb_Ouvriers]
Nf = Sh.Name
Continuer = False
For i = 1 To UBound(Liste, 1)
If Liste(i, 4) = Nf Then Continuer = True: Exit For
Next
If Not Continuer Then Exit Sub
Set Lo = Sh.ListObjects(1)
If Intersect(Target, Lo.ListColumns(2).Range) Is Nothing Then Exit Sub
Cancel = True
lgn = Target.Row
Rép = MsgBox("Insérer une ligne " & Format(Target.Value, "dddd d mmmm yyyy") & " sous cette ligne ?", vbYesNo, Nf)
If Rép = vbNo Then Exit Sub
Lr = Target.Row - Lo.Range.Row + 1
Lo.ListRows.Add Lr + 1
Intersect(Sh.Rows(lgn + 1), Lo.ListColumns(2).Range).Value = Target.Value
End Sub