Hi, in my code, a SpinButton controls a listbox and the textbox save values related to the item in a array.
So, when i do "Enter" in the keyboard after type on the textbox, I wish I could SpinUp.
Hi, in my code, a SpinButton controls a listbox and the textbox save values related to the item in a array.
So, when i do "Enter" in the keyboard after type on the textbox, I wish I could SpinUp.
Not exactly sure how u want to use the spin button, but you can use this to catch 'enter' key presses...
Assuming you're using a textbox on a userform and the textbox is named "Textbox1"
![]()
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) If KeyCode = 13 Then MsgBox "MY CODE RUNS HERE" End If End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks