max76
05-01-2017, 08:24 AM
Hi everyone,
I have a combobox on a Userform in Word 2010. I managed to find a code to get the mousewheel to scroll in the combobox. I used the events "Enter" and "Exit" with the ComboBox and everything works fine. However, if I keep the userform open and I decide to move the mouse to another application such as a web browser the scroll doesn't work because it is still hooked on the userform and cannot get it unhooked unless I close the userform (which I don't want to).
Unfortunately there is no LostFocus events for Userforms. Therefore, I'm wondering if a workaround solution is possible to emulate the lost focus scenarios to allow the mousewheel scroll to work if the user is on another application.
Thank you.
Massimo
I have a combobox on a Userform in Word 2010. I managed to find a code to get the mousewheel to scroll in the combobox. I used the events "Enter" and "Exit" with the ComboBox and everything works fine. However, if I keep the userform open and I decide to move the mouse to another application such as a web browser the scroll doesn't work because it is still hooked on the userform and cannot get it unhooked unless I close the userform (which I don't want to).
Unfortunately there is no LostFocus events for Userforms. Therefore, I'm wondering if a workaround solution is possible to emulate the lost focus scenarios to allow the mousewheel scroll to work if the user is on another application.
Thank you.
Massimo