Private Sub UserForm_Activate() Dim i As Integer For i = 2009 To 2107 ComboBox1.AddItem CStr(i) Next i ComboBox1.Style = fmStyleDropDownList End Sub Private Sub ComboBox1_Click() MsgBox ComboBox1.Text End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Sub ComboBox4_Click() MsgBox "tu as cliqué sur l'article d'index " & ComboBox4.ListIndex MsgBox "ComboBox4.Text renvoie son contenu ==>> " & ComboBox4.Text MsgBox "ComboBox4.List(ComboBox4.ListIndex) renvoie d'ailleurs la même chose ===>> " & ComboBox4.List(ComboBox4.ListIndex) End Sub
Select Case Clic End Select
tabannee(a, 0) = i