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

Affecter une macro à une liste de validation

1 réponse
Avatar
lemig
Bonjour,

Est-il possible d'affecter une macro à une liste de validation? Si oui,
comment?

Merci

1 réponse

Avatar
Philippe.R
Bonsoir,
Tu peux utiliser l'évènement change de la feuille :

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("c1")) Is Nothing Then
MsgBox [c1]
End If
End Sub

supposant la liste de validation en c1
--
Avec plaisir
http://dj.joss.free.fr/trombine.htm
http://jacxl.free.fr/mpfe/trombino.html
Philippe.R
Pour se connecter au forum :
http://www.excelabo.net/mpfe/connexion.php
News://news.microsoft.com/microsoft.public.fr.excel
"lemig" a écrit dans le message de
news:
Bonjour,

Est-il possible d'affecter une macro à une liste de validation? Si oui,
comment?

Merci