Herbers Excel-Forum - das Archiv
ComboBox bei Tab-Sprung öffnen
Informationen und Beispiele zu den hier genannten Dialog-Elementen:
Betrifft: ComboBox bei Tab-Sprung öffnen
von: Andreas
Geschrieben am: 19.12.2006 18:38:42
Hallo Excel-Profis!
Ich habe mir mit Hilfe von Text- und ComboBoxen eine Art Eingabemaske erstellt. Mit diesem Code (Danke an dieses Forum) springe ich per Tabtaste von Box zu Box.
Gib es eine Möglichkeit, dass sich beim Sprung in eine ComboBox diese öffnet, damit man einen Eintrag wählen kann?
Private Sub TextBox1_KeyDown(ByVal KeyCode As _
MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = vbKeyTab Then ComboBox1.Activate
End Sub
Private Sub ComboBox1_KeyDown(ByVal KeyCode As _
MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = vbKeyTab Then TextBox2.Activate
End Sub
Danke für die Hilfe!
mfg Andreas
Betrifft: AW: ComboBox bei Tab-Sprung öffnen
von: ChrisL
Geschrieben am: 19.12.2006 18:54:13
Hallo Andreas
Falls Tabelle:
Private Sub ComboBox1_GotFocus()
ComboBox1.DropDown
End Sub
Falls Userform:
Private Sub ComboBox1_Enter()
ComboBox1.DropDown
End Sub
Gruss
Chris
Betrifft: AW: ComboBox bei Tab-Sprung öffnen
von: Andreas
Geschrieben am: 19.12.2006 19:00:37
Hallo Chris!
Danke für die Hilfe, funktioniert super.
mfg Andreas