Private Sub CommandButton1_Click()
Dim element_select As Boolean
Dim nb_elements, I As Integer
element_select = False
nb_elements = UserForm1.ListBox1.ListCount
ListBox2.Clear
element_select = False
For I = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(I) = True Then
element_select = True
ListBox2.AddItem ListBox1.List(I) ' Par éxemple
End If
Next
If element_select = False Then
MsgBox "Vous n'avez pas sélectionné de paramètres influents => Fin du programme"
Exit Sub
End If
End Sub