1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Sub suplignes()
Dim Dl As Long, Dc As Long, x As Long, y As Long, verif As String
verif = ""
With Sheets("Feuil1") '"Feuil1" à remplacer par le nom de ta feuille
Dl = .Range("A" & .Rows.Count).End(xlUp).Row 'dernière ligne utilisée en A
Dc = .Cells(1, .Columns.Count).End(xlToLeft).Column 'dernière colonne utilisée sur la ligne 1
For x = Dl To 1 Step -1 'tu remontes de la dernière ligne à la première pour vérifier si vide
For y = 1 To Dc
verif = verif & .Cells(x, y)
Next y
If verif = "" Then
.Rows(x).Delete
End If
verif = ""
Next x
End With
End Sub |
Partager