Bonjour,
La macro suivante ne fonctionne pas si la variable "b" est un nombre:
La macro marche si c'est du texte. La MsgBox me donne "FAUX" si c'est un nombre.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 Sub Test() b = InputBox ("valeur") If [B9].Value = b Then MsgBox "VRAI" Else: MsgBox "FAUX" End If End Sub
Qqn peut-il m'aider? Merci John81
Partager