Evenement Key_press textbox / formulaire
Résolu
ph412
Messages postés
45
Date d'inscription
Statut
Membre
Dernière intervention
-
Ph412 -
Ph412 -
A voir également:
- Evenement Key_press textbox / formulaire
- Whatsapp formulaire opposition - Guide
- Formulaire de réclamation facebook - Guide
- Formulaire de reclamation instagram - Guide
- Confirmer le nouvel envoi du formulaire err_cache_miss - Forum Webmastering
- Formulaire de contact le bon coin introuvable ✓ - Forum Réseaux sociaux
1 réponse
Bonjour,
Comme ceci :
Pour sortir du textbox, appuyez sur Tabulation ou fermez l'userform
Comme ceci :
Pour sortir du textbox, appuyez sur Tabulation ou fermez l'userform
Option Explicit Private NeSortPas As Boolean Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) TextBox1 = "" Cancel = NeSortPas End Sub Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) If KeyCode = 13 Or KeyCode = 10 Then NeSortPas = True ListBox1.AddItem TextBox1 ElseIf KeyCode = 9 Then NeSortPas = False End If End Sub
Ph412
Merci c'est top !!