Sub supprimer_lignes()
Dim I As Long
Dim Plage As Range
Sheets("BDD devis Détail").Select
Set Plage = Range("j1:j" & Range("j65536").End(xlUp).Row)
For I = Plage.Cells.Count To 1 Step -1
If Range("J2").Select = "M" Then
Rows("2:2").Select
Selection.Delete Shift:=xlUp
Else
I = I + 1
End If
Next I
End Sub
Voici une ébauche mais je ne comprends pas pourquoi ça ne marche pas