Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

comment masquer automatiquement des lignes vides

1 réponse
Avatar
Christophe Baeriswyl
je cherche, par une macro, à masquer automatiquement les lignes vierges d'une
feuille dans Excel.

1 réponse

Avatar
JB
Bonjour,

http://cjoint.com/?eDtwvvQIsS

Sub masque_lignes_vides_colonneA()
Range("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Hidden = True
End Sub

Sub masque_lignes_vides_ligne_entiere()
For i = 1 To [A65000].End(xlUp).Row
If Application.CountA(Rows(i)) = 0 Then
Rows(i).Hidden = True
End If
Next i
End Sub

Sub affiche_tout()
Cells.EntireRow.Hidden = False
End Sub

Cordialement JB