I have a ComboBox ActiveX on Excel.
1. When the mouse hovers over it, the comboBox will drop down.
2. When the mouse leaves the region of ComboBox, the comboBox will collapse.
Task 1 can be done using "MouseMove" event.
However, for task 2, it seems that Excel VBA itself doesn't have corresponding "MouseOut" event to handle it.
Is there any workaround?
Thanks a lot!
1. When the mouse hovers over it, the comboBox will drop down.
2. When the mouse leaves the region of ComboBox, the comboBox will collapse.
Task 1 can be done using "MouseMove" event.
However, for task 2, it seems that Excel VBA itself doesn't have corresponding "MouseOut" event to handle it.
Is there any workaround?
Thanks a lot!
Code:
Private Sub ComboBox1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
ComboBox1.DropDown
End Sub