Enter after selection in combo box

Marta B

New Member
Joined
Dec 7, 2021
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
I'm new here and with the Developer tab, so I apologize if this is a simple issue.
I inserted a ComboBox pulling a list from a different tab. It functions and auto completes the selection (which is what I was trying to attain), but then I can't enter or tab out of the box to move to the next cell. Do I need to set something in the Properties?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
It sounds like you have your combobox on a worksheet (not a UserForm). Comboboxes are not like cells. You can't hit ENTER or tab out of it. You have to click on the next cell.

It is possible to add code that will take you to a specific cell when you change the value in a combobox

Rich (BB code):
Private Sub ComboBox1_Change()
   Range("A1").Select
End Sub
 
Upvote 0
but then I can't enter or tab out of the box to move to the next cell. Do I need to set something in the Properties?
Put this code in the sheet code module:
VBA Code:
Private Sub ComboBox1_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
    If KeyCode = vbKeyReturn Or KeyCode = vbKeyTab Then
            Range("C1").Activate  'change to suit
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,203,460
Messages
6,055,556
Members
444,796
Latest member
18ecooley

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top