exceliousss
New Member
- Joined
- Dec 12, 2018
- Messages
- 2
Hi i made a combobox, because i needed the autofill. Now i want to move through the combobox with shift + tab -> offset (0,-1)
My code so far:
Thanks in advance!
My code so far:
Code:
Private Sub Manufacturer_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)'Moving through dropdown cell (keycode left/right arrow key + tab)
Select Case KeyCode
Case 9 'tab'
Application.ActiveCell.Offset(0, 1).Activate
Case 39 'right arrow key'
Application.ActiveCell.Offset(0, 1).Activate
Case 37 'left arrow key'
Application.ActiveCell.Offset(0, -1).Activate
Case 13 'enter'
Application.ActiveCell.Offset(1, 0).Activate
End Select
End Sub
Thanks in advance!