alimenter textbox

dam3117

XLDnaute Occasionnel
Bonjour,

j'ai un combobox, un commandbutton et un textbox.

j'ai une donnée dans ma combobox en validant elle doit alimenter ma textbox, en choissisant une nouvelle valeur dans ma combobox il alimente a nouveau ma textbox en mettant à la suite;
saisie 1 COMBOBOX= A TEXTBOX = A
saisie 2 COMBOBOX= B TEXTBOX = A
B

...
 

Pièces jointes

  • PROJET.xls
    20.5 KB · Affichages: 40
  • PROJET.xls
    20.5 KB · Affichages: 38
  • PROJET.xls
    20.5 KB · Affichages: 40

Pierrot93

XLDnaute Barbatruc
Re : alimenter textbox

Bonjour,

essaye ceci :
Code:
Private Sub CommandButton1_Click()
TextBox1 = IIf(Len(TextBox1) = 0, ComboBox1, TextBox1 & vbLf & ComboBox1)
End Sub

A noter la propriété "multiline" du "textbox1" doit être positionnée à "True"

bonne journée
@+
 

Discussions similaires

Réponses
17
Affichages
777

Statistiques des forums

Discussions
312 453
Messages
2 088 551
Membres
103 881
dernier inscrit
malbousquet