Textbox contient

Bonjour à tous,

Comment peut on traduire : Textbox contient?

Je voudrait créer une macro du style

If Textbox1 CONTIENT "/" Then

Textbox2. visible = True

Le problème c'est que je ne sait pas comment formuler "contient".

Si quelqu'un pouvait m'aider cela m'aiderait beaucoup.

Merci

Bonjour

Essayes

  If InStr(Me.TextBox1.Value, "/") > 0 Then
    MsgBox " Le textbox contient un /"
  Else
    MsgBox " Le textbox ne contient pas de /"
  End If

Bonjour Banzai64,

Super, ton code fonctionne parfaitement.

Merci encore

Rechercher des sujets similaires à "textbox contient"