Userform Combobox on click display dropdown menu

FuNeS13

Board Regular
Joined
Oct 25, 2016
Messages
161
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Mobile
  3. Web
Can it be done? I have a Userform with several combo-boxes, I want to know if it's possible to display the combobox dropdown menu by clicking on the actual combobox rectangle, not just on the dropdown arrow key... Does it make sense?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try this
- the dropdown list appears when user hovers over Combobox1 - amend to match the name of the combobox
Code:
Private Sub [COLOR=#ff0000]ComboBox1[/COLOR]_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
   [COLOR=#ff0000]ComboBox1[/COLOR].DropDown
End Sub
 
Last edited:
Upvote 1
Try this
- the dropdown list appears when user hovers over Combobox1 - amend to match the name of the combobox
Code:
Private Sub [COLOR=#ff0000]ComboBox1[/COLOR]_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
   [COLOR=#ff0000]ComboBox1[/COLOR].DropDown
End Sub


I love it! You are awesome my friend!
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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