Suppression de ligne
Fermé
Magali
-
30 nov. 2020 à 15:22
yg_be Messages postés 22719 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 23 avril 2024 - 30 nov. 2020 à 16:57
yg_be Messages postés 22719 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 23 avril 2024 - 30 nov. 2020 à 16:57
A voir également:
- Suppression de ligne
- Forcer suppression fichier - Guide
- Site de vente en ligne particulier - Guide
- Partage de photos en ligne - Guide
- Hors ligne instagram - Guide
- Aller à la ligne excel - Guide
1 réponse
yg_be
Messages postés
22719
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
23 avril 2024
1 476
30 nov. 2020 à 16:57
30 nov. 2020 à 16:57
bonjour,
suggestion:
suggestion:
Sub exterminer_amazon() Dim rg As Range, sh As Worksheet, ligdeb As Long, ligfin As Long, nlig As Long Set sh = ActiveSheet Set rg = Intersect(sh.UsedRange, sh.Columns("a")) If Not rg Is Nothing Then ligdeb = rg.Row ligfin = ligdeb + rg.Rows.Count - 1 For nlig = ligfin To ligdeb Step -1 If sh.Cells(nlig, 1) = "Amazon" Then sh.Rows(nlig).Delete End If Next nlig End If End Sub