Erreur d'éxécution 13. Incompatibilité de type
jrp_rogue
-
jrp_rogue Messages postés 2 Statut Membre -
jrp_rogue Messages postés 2 Statut Membre -
Bonjour,
Mon code fonctionne mais dès que je fais une manip sur ma feuille excel, ce message s'affiche. Quelqu'un pourrait m'expliquer pourquoi et comment y remédier s'il-vous-plaît ?
Ci-dessous mon code :
Private Sub Worksheet_Change(ByVal Target As Range)
If Target = Range("I23") Then
If Range("I23") = "OUI" Then
MsgBox ("Texte")
End If
If Range("I23") = "NON" Then
MsgBox ("Texte")
End If
End If
End Sub
Mon code fonctionne mais dès que je fais une manip sur ma feuille excel, ce message s'affiche. Quelqu'un pourrait m'expliquer pourquoi et comment y remédier s'il-vous-plaît ?
Ci-dessous mon code :
Private Sub Worksheet_Change(ByVal Target As Range)
If Target = Range("I23") Then
If Range("I23") = "OUI" Then
MsgBox ("Texte")
End If
If Range("I23") = "NON" Then
MsgBox ("Texte")
End If
End If
End Sub