enter data in combo box without clicking on box

lbenner

New Member
Joined
Oct 11, 2011
Messages
2
Hi: On my worksheet (Excel 2007), the user will be entering data in both cells and combo boxes. Each time he enters info in a cell, he hits enter and the cursor moves to the next cell; however, if there is a combo box positioned over a cell, I would like the cursor to move into the combo box in order for the user to enter at least the first letter without picking up the mouse and clicking.

I am assuming I need a change event on the previous cell, but I can't figure out what code to use. I tried setfocus, but that didn't work.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
If I understand right, you would need to setfocus on the combobox when it is loaded...not on the previous cell.
 
Upvote 0
I tried to setfocus after the value in the previous cell changed, but this did not work. When I typed (without clicking first) the letter I typed went into the cell under the combo box. I read on a forum somewhere that you can't set focus on a combo box in a worksheet--not sure if this is true.

I'm sorry, I'm not sure what you mean by "when it is loaded."
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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