Bonjour
un essai, si j'ai tout compris (?), pour l'OptionButton "a b e" :
Private Sub OpbEnCours_Click()
Dim i As Long, Compteur As Long, Test, Total As Long
With ListBox1
If OpbEnCours Then
Total = .ListCount
For i = .ListCount - 1 To 0 Step -1
Test = Me.ListBox1.List(i, 2)
If Test <> "a" And Test <> "b" And Test <> "e" Then
Compteur = Compteur + 1
ListBox1.RemoveItem (i)
End If
Next
If Compteur = Total Then MsgBox "catégorie inexistante"
End If
End With
End Sub
à adapter pour les 2 autres OptionButton.
A+