Userform Combobox on click display dropdown menu

FuNeS13

Board Regular
Joined
Oct 25, 2016
Messages
160
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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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 0
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,215,310
Messages
6,124,184
Members
449,147
Latest member
sweetkt327

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