Bonsoir,
Vous avez utilisé ce code pour ajouter un signe X sur la ligne sélectionnée dans listbox (multiselect);
Dim i As Byte, j As Integer, nbl&
If ListBox1.ListIndex = -1 Then Exit Sub
With ThisWorkbook.Worksheets("Feuil1")
nbl = .Range("A" & .Rows.Count).End(xlUp).Row
End With
With Me.ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) = True Then
For j = 2 To nbl
If ThisWorkbook.Worksheets("Feuil1").Cells(j, 1).Value = .List(i) Then
Rows(j).Select 'Lieu de l'erreur
ThisWorkbook.Worksheets("Feuil1").Cells(j, 6).Value = "X"
End If
Next j
End If
Next i
End With
'(La feuille est cachée)
Mais il y a un problème d'erreur 1004 .
Merci