Combobox onkey down and up event

Ohad1997

New Member
Joined
Aug 13, 2017
Messages
21
I want to hover over a selection rather then actually selecting it when i press the down or up key inside a combobox, how can i achieve this?
(yes i know hovering with the mouse does the same thing, i want to able to hover over a selection without actually selecting it with the down and up buttons)
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
I want to hover over a selection rather then actually selecting it when i press the down or up key inside a combobox, how can i achieve this?
(yes i know hovering with the mouse does the same thing, i want to able to hover over a selection without actually selecting it with the down and up buttons)
Do you want this because you don't want to trigger the combobox change event? and where is you combobox? In a userform or on a worksheet ?
 
Upvote 0
Hi Ohad1997,

This turned out to be more complicated than I initially thought ... I had some code in mind but after implemnting it didn't work.

I'll give this another shot and see if anything comes up.
 
Upvote 0
Thx jafaar u are the real mvp <3
Thank you ohad1997.

I had a little try at this today but with partial success. I have been trying to come up with an elegant API-based solution but I am not satisfied with the result.

I have an idea though. Why not have an empty combobox and a hidden ListBox poulated with the list iems.. Upon clicking the empty combobox dropdown button, show the ListBox below it and hide the ListBox back when done .. You will add some basic plumbing vba code to connect the two controls and you will then get the effect you need.
 
Upvote 0
I dont know if its possible to combine the code u made to scroll a combobox via mouse wheel and applying the method u suggested
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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