Private Sub CommandButton5_Click()
Select Case MsgBox(">>>ATTENTION<<<" & Chr(13) & "Vous allez supprimer définitivement les lignes sélectionnées dans le listing. " & Chr(13) & "Voulez-vous continuer.", vbYesNo, "Suppression des lignes")
Case vbYes
Dim Lig As Long, Grille As Variant, Trouve As Range, Plage As Range
[COLOR=red][B]With Sheets("inventaire")[/B][/COLOR]
[B][COLOR=red].Unprotect[/COLOR][/B]
For Lig = 1 To Selection.Rows.Count
Grille = Selection(Lig, 5).Value
Set Trouve = .Range("E8:E" & .[E65536].End(xlUp).Row).Find(Grille, LookIn:=xlValues, lookat:=xlWhole)
If Not Trouve Is Nothing Then
If Plage Is Nothing Then
Set Plage = .Rows(Trouve.Row)
Else: Set Plage = Union(Plage, .Rows(Trouve.Row))
End If
End If
Next
If Not Plage Is Nothing Then Plage.Delete
[COLOR=seagreen]Range("A9:L1634").Select[/COLOR]
[COLOR=seagreen]Selection.ClearContents[/COLOR]
[COLOR=seagreen]Range("A9").Select[/COLOR]
[COLOR=red][B].Protect[/B][/COLOR]
[B][COLOR=red]End With[/COLOR][/B]
Case vbNo
'procédure si click sur Annuler
End Select
End Sub