XL 2010 Supprimer lignes

  • Initiateur de la discussion Initiateur de la discussion Chombi
  • Date de début Date de début

Boostez vos compétences Excel avec notre communauté !

Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !

Chombi

XLDnaute Occasionnel
Bonjour le Forum

Existe t'il une solution plus rapide que :

Application.Calculation = xlManuel
Application.DisplayAlerts = False
Application.ScreenUpdating = False

Dim i As Long
With Sheets("Feuil1")
For i = .Range("A" & Rows.Count).End(xlUp).Row To 2 Step -1
On Error Resume Next
If Sheets("Feuil1").Range("S" & i) = 0 Then
Sheets("Feuil1").Range(i & ":" & i).Resize(, 19).Delete Shift:=xlUp
End If
Next
End With

Application.Calculation = xlAutomatic
Application.DisplayAlerts = True
Application.ScreenUpdating = True

Pour supprimer des lignes contenant "0" en colonne S sur 10000 lignes
si il y a par ex 4000 "0"
voir fichier joint

Merci
 

Pièces jointes

Bonsoir
si tu acceptes un tri auparavant tu peux essayer ceci
Sub sup()
With Sheets(1)
.UsedRange.Sort key1:=.Columns(19), Header:=True

Set r = .Columns(19).Find(0, LookIn:=xlValues, SearchDirection:=2)
'MsgBox r.address
Set zone = .Range(.Cells(2, 1), .Cells(r.Row, 19))
zone.Delete

End With
End Sub
 
- Navigue sans publicité
- Accède à Cléa, notre assistante IA experte Excel... et pas que...
- Profite de fonctionnalités exclusives
Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel.
Je deviens Supporter XLD

Discussions similaires

Réponses
5
Affichages
703
  • Question Question
Microsoft 365 worksheet_change
Réponses
29
Affichages
1 K
Réponses
10
Affichages
531
Retour