Bonjour,
Dans un fichier, je supprime les lignes "blanches" par :
Range("A1:A" & DerLig).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
J'ai voulu reproduire cette commande pour un mot précis, mais ne sachant pas comment faire, j'ai écrit ceci:
'suppression des lignes contenant le mot "xxx"
Dim i As Integer
For i = .Range("A" & .Rows.Count).End(xlUp).Row To 2 Step -1
If .Range("A" & i).Value = "xxx" Then .Rows(i).Delete
End If
Next i
mais ça ne marche pas non plus
Pouvez-vous m'aider SVP ?
Merci
GL