Hey there,
|
Hello,
Sub testDelete()
Dim plage As Range
Dim numlig As Integer
Dim numcol As Integer
Dim cpt As Integer
Dim nblig As Integer
Dim nbcol As Integer
Set plage = Range("A65536").End(xlUp).CurrentRegion
nblig = plage.Rows.Count
nbcol = plage.Columns.Count
For numlig = nblig To 1 Step -1
cpt = 0
For numcol = 1 To nbcol
If plage.Rows(numlig).Columns(numcol) = "Blocked" Then
cpt = cpt + 1
End If
Next numcol
If cpt = 0 Then
Rows(numlig).delete
End If
Next numlig
End Sub
Best regards "Pour trouver une solution � ses probl�mes, il faut s'en donner la peine." |