A voir également:
- "VBA: avoir un macro qui m'aiderais à afficher/masquer"
- Excel compter cellule couleur sans vba - Guide
- Incompatibilité de type vba ✓ - Forum VB / VBA
- Mkdir vba ✓ - Forum VB / VBA
- Erreur 13 incompatibilité de type VBA excel ✓ - Forum Excel
- Vba range avec variable ✓ - Forum VB / VBA
1 réponse
Bonjour,
Mets cette macro dans le module de la feuille (pas dans un module standard) :
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$L$12" Then Application.EnableEvents = False If Target = "x" Then For Each cellule In Range("C29:C32") If cellule.Value = "" Then cellule.EntireRow.Hidden = True End If Next cellule ElseIf Target = "y" Then For Each cellule In Range("C29:C32") If cellule.Value = "" Then cellule.EntireRow.Hidden = False End If Next cellule End If Application.EnableEvents = True End If End Sub
Daniel