Excel Userform MouseWheel Scroll ComboBox DropDown List Issue

MRJT

New Member
Joined
Jun 5, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
There are several variations of code for MouseWheel Scroll for User Forms on different threads, but all of them that I have found has an issue with the combobox dropdown list when it is showing. When the combobox dropdownlist is showing and the the mouse is over a different part of the form, the drop down list stays open and moves away from combobox when the mouse wheel is used. Has anyone else experienced this and is there a resolution? See attached picture.

 

Attachments

  • ComboBox Mousewheel Scroll Issue.jpg
    ComboBox Mousewheel Scroll Issue.jpg
    81.5 KB · Views: 37

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I haven't experienced the particular issue that you show, but too many other issues. So in the end I deleted the code. All the solutions use API hooks into the system. Mouse events come so often, and then there are so many that the hooks can't keep up, I think. VBA is a slow language. If you program you userform in C# or C++ you won't have an issue ;)
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,417
Members
448,895
Latest member
omarahmed1

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