En cherchant un peu je viens de trouver ça sur un autre forum (code VB) :
Sub delete_ligne()
Dim i As Integer
Application.ScreenUpdating = False
For i = 1 To 6600
If (Cells(i, 14) = 0 And (Cells(i, 11) = 2 Or Cells(i, 11) = 3 Or Cells(i, 11) = 4 Or Cells(i, 11) = 5 Or Cells(i, 11) = 6)) Then
Cells(i, 1).EntireRow.Delete
i = i - 1
End If
Next
Application.ScreenUpdating = True
End Sub
Si je l'adapte à mon problème, est-ce que ça peut marcher selon vous ? Ce code a l'air de supprimer les cellules de la 1ère colonne et non les lignes.
Sub delete_ligne()
Dim i As Integer
Application.ScreenUpdating = False
For i = 1 To 6600
If (Cells(i, 2) < AUJOURDHUI() Or (Cells(i, 2) <> 0 Then
Cells(i, 1).EntireRow.Delete
i = i - 1
End If
Next
Application.ScreenUpdating = True
End Sub