Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim lig As Long, i As Byte, j As Byte, k As Byte, l As Byte, m As Byte, txt$, trouvelig As Variant
lig = Target.Row
If Cells(lig, 3) = "" Or lig < 3 Then Exit Sub
Cancel = True
Range(Cells(lig, 19), Cells(lig, 256)).ClearContents
For i = 3 To 11 Step 2
For j = 3 To 11 Step 2
If j <> i Then
For k = 3 To 11 Step 2
If k <> i And k <> j Then
For l = 3 To 11 Step 2
If l <> i And l <> j And l <> k Then
For m = 3 To 11 Step 2
If m <> i And m <> j And m <> k And m <> l Then
txt = "-" & Cells(lig, i) & "-" & Cells(lig, j) & "-" & Cells(lig, k) & "-" & Cells(lig, l) & "-" & Cells(lig, m) & "-"
If txt <> Cells(lig, 15) Then
trouvelig = Application.Match(txt, Sheets("Arrivée").Columns(9), 0)
If IsNumeric(trouvelig) Then
Cells(lig, 256).End(xlToLeft).Offset(, 2) = "sortie le " & Sheets("Arrivée").Cells(trouvelig, 1).Text
End If
End If
End If
Next m
End If
Next l
End If
Next k
End If
Next j
Next i
End Sub