Programme qui masque les lignes selon un mot clé.

Fermé
OK - 4 avril 2018 à 10:53
yg_be Messages postés 22724 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 25 avril 2024 - 4 avril 2018 à 13:13
Bonjour,
je souhaite écrire un code qui masque automatiquement les lignes d'un tableau Excel quand le mot "Achevé" apparait dans la 5ème colonne.
Merci de votre aide.

A voir également:

1 réponse

yg_be Messages postés 22724 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 25 avril 2024 1 476
4 avril 2018 à 13:13
bonjour, suggestion:
Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Columns("E:E")) Is Nothing Then
    If Target = "ok" Then
        Target.EntireRow.Hidden = True
    End If
End If
End Sub
0