K karinette XLDnaute Occasionnel 12 Septembre 2014 #1 Bonjour a tous, J'ai un Userform, et j'aimerais par le biais d'un CommandButton pouvoir récuperer les 7 premiers carractères du combobox1 dans un textbox. Si quelqu'un à la solution, un grand merci d'avance ...
Bonjour a tous, J'ai un Userform, et j'aimerais par le biais d'un CommandButton pouvoir récuperer les 7 premiers carractères du combobox1 dans un textbox. Si quelqu'un à la solution, un grand merci d'avance ...
camarchepas XLDnaute Barbatruc 12 Septembre 2014 #2 Re : Valeur dans Textbox Bonjour , Comme ceci Textbox1.text = left(combobox1.text,7) Vote positif 0 Vote négatif
K karinette XLDnaute Occasionnel 12 Septembre 2014 #3 Re : Valeur dans Textbox Génial .. ça marche parfaitement ... Merci !! Vote positif 0 Vote négatif
C Caillou XLDnaute Impliqué 12 Septembre 2014 #4 Re : Valeur dans Textbox Bonsoir, soit un userform contenant un combobox nommé ComboBox1, un textbox nommé TextBox1 et un bouton de commande nommé CommandButtun1, Code: Private Sub CommandButton1_Click() TextBox1 = Left(ComboBox1, 7) End Sub Caillou Vote positif 0 Vote négatif
Re : Valeur dans Textbox Bonsoir, soit un userform contenant un combobox nommé ComboBox1, un textbox nommé TextBox1 et un bouton de commande nommé CommandButtun1, Code: Private Sub CommandButton1_Click() TextBox1 = Left(ComboBox1, 7) End Sub Caillou