Private Sub CommandButton1_Click()
Dim i As Long
With ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) Then Range("F" & i + 2) = "X"
Next
End With
UserForm_Initialize
End Sub
Dim i As Byte, j As Byte, nbl&, lig As Long
nbl = Range("A" & Rows.Count).End(xlUp).Row
With Me.ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) = True Then
lig = Range("A2:F" & nbl).Cells.Find(what:=.List(i), lookat:=xlWhole).Row
Range("F" & lig) = "X"
End If
Next i
End With
Private Sub CommandButton1_Click()
Dim i As Long
With ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) Then Range("F" & i + 2) = "X"
Next
End With
UserForm_Initialize
End Sub
Dim i As Long
With ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) = True Then
Range("A" & i + 2) = TextBox1
Range("B" & i + 2) = TextBox2
Range("C" & i + 2) = TextBox3
End If
Next
End With
For i = 0 To .ListCount - 1
If .Selected(i) = True Then
Sheets("Feuil1").Rows(i + 2).Delete
End If
Next
For i = .ListCount - 1 To 0 Step -1
Dim i As Byte, j As Byte, nbl&
nbl = Range("A" & Rows.Count).End(xlUp).Row
With Me.ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) = True Then
For j = 2 To nbl
If Cells(j, 1).Value = .List(i) Then
Rows(j).Select
Cells(j, 7).Value = "X"
End If
Next j
End If
Next i
End With