Je ne trouve nulle part dans la doc Microsoft sur l'opérateur Like comment considérer un des caractères "?" ou "*" ou "#" comme tel et non pas comme un caractère de pattern.
Sub test()
Dim chaine$
chaine = "Ab?cd123"
If chaine Like "*[?]*" Then
MsgBox "ok 1"
End If
Dim chainee$
chainee = "Abcd1#23"
If chainee Like "*[#]*" Then
MsgBox "ok 2"
End If
End Sub
Sub test()
Dim chaine$
chaine = "Ab?cd123"
If chaine Like "*[?]*" Then
MsgBox "ok 1"
End If
Dim chainee$
chainee = "Abcd1#23"
If chainee Like "*[#]*" Then
MsgBox "ok 2"
End If
End Sub