A voir également:
- (VBA)Suppression de colonne vide
- (VBA)Suppression de colonne vide ✓ - Forum - VB / VBA
- Suppression de colonnes vides ✓ - Forum - VB / VBA
- [VBA] Suppression ligne cellule vide plage ! ✓ - Forum - VB / VBA
- *macro condition suppression pr colonne vide ✓ - Forum - Programmation
- Excel VBA suppression de ligne vide ✓ - Forum - VB / VBA
3 réponses
LatelyGeek
- Messages postés
- 1712
- Date d'inscription
- vendredi 4 janvier 2008
- Statut
- Membre
- Dernière intervention
- 16 janvier 2020
Un peu différent, mais ça fonctionne:
Sub SuppVide()
Dim y as Integer
Range("C4").Select
For y = 1 To 10
If IsEmpty(ActiveCell) Then
ActiveCell.EntireColumn.Delete
Else
ActiveCell.Offset(0, 1).Select
End If
Next y
End Sub
Sub SuppVide()
Dim y as Integer
Range("C4").Select
For y = 1 To 10
If IsEmpty(ActiveCell) Then
ActiveCell.EntireColumn.Delete
Else
ActiveCell.Offset(0, 1).Select
End If
Next y
End Sub
michel_m
- Messages postés
- 16429
- Date d'inscription
- lundi 12 septembre 2005
- Statut
- Contributeur
- Dernière intervention
- 8 avril 2021
Bonjour,
En 1 ligne et sans boucle
Sub supprimer_col()
Cells.Range("C4:V4").SpecialCells(xlCellTypeBlanks).EntireColumn.Delete
End Sub
Elle est pas belle la vie ?
Bonne soirée
En 1 ligne et sans boucle
Sub supprimer_col()
Cells.Range("C4:V4").SpecialCells(xlCellTypeBlanks).EntireColumn.Delete
End Sub
Elle est pas belle la vie ?
Bonne soirée