Excel : Supprimer une ligne avec conditions
freygeo
Messages postés
24
Statut
Membre
-
lermite222 Messages postés 9042 Statut Contributeur -
lermite222 Messages postés 9042 Statut Contributeur -
Bonjour,
J'ai des informations dans la colonne A, je souhaite supprimer la ligne en entier si dans les cellules en colonne A il y a soit #valeur!
soit #N/A
j'ai rentré le code suivant :
Sub ligne()
Dim i As Integer
Application.ScreenUpdating = False
For i = 1 To 30000
If (Cells(i, 1) = "#valeur!") Or (Cells(i, 1) = "#N/A") Then
Cells(i, 1).EntireRow.Delete
i = i - 1
End If
Next
Application.ScreenUpdating = True
End Sub
mais il doit y avoir un problème, cela ne fonctionne pas...
Si vous pouviez m'aider... merci !
On the road again !
J'ai des informations dans la colonne A, je souhaite supprimer la ligne en entier si dans les cellules en colonne A il y a soit #valeur!
soit #N/A
j'ai rentré le code suivant :
Sub ligne()
Dim i As Integer
Application.ScreenUpdating = False
For i = 1 To 30000
If (Cells(i, 1) = "#valeur!") Or (Cells(i, 1) = "#N/A") Then
Cells(i, 1).EntireRow.Delete
i = i - 1
End If
Next
Application.ScreenUpdating = True
End Sub
mais il doit y avoir un problème, cela ne fonctionne pas...
Si vous pouviez m'aider... merci !
On the road again !
A voir également:
- Excel : Supprimer une ligne avec conditions
- Liste déroulante excel - Guide
- Word et excel gratuit - Guide
- Si ou excel - Guide
- Déplacer colonne excel - Guide
- Excel trier par ordre croissant chiffre - Guide