I'm using Excel 2016 64-bit and have a ComboBox with a dropdown that contains 150+ lines. I'm trying to set it up so that I can scroll through the lines with the mouse wheel.
Excel Facts
What do {} around a formula in the formula bar mean?
I've been looking for a better solution to this problem. Jafaar's solution works, however I've had some problems with it. Occasionally, if it has control of a scroll wheel and Excel loses focus, it will keep your scroll wheel trapped in that combobox. This means it is impossible to scroll anything else. I wasn't able to find any alternative for that code though. It will probably be fine for dagda's use case, but if anyone is switching windows there can be problems.
I have somewhere in my projects a different solution, I think. But at the moment no time to dig it up. See what I can do. But I am also sure that works for Office 32, no idea about Office 64
I used code by Peter Thornton. It sometimes has issues. Here is a thread that discusses improvements on the code and how to make it work on 64bits PCs as well.
because it uses hooks into the windows system I think it will always be a bit haphazard.
Hi guys, I´m tying to be able to scroll up down with my mouse on a frame inside a userform, but so far I was not able to make it work, I´ve searched and I came across this code, which I will paste below, changed the name of the userform, also the name of the frame on the userform module...
i tried to work with peter Peter Thornton (Excel MVP 2008-13) code which works amazing for userform Comboxes and listboxes but im a vba noobie and i cant seem to understand how to make this code work for a regular ComboBox on a worksheet Module Code: 'Enables mouse wheel scrolling in controls...
www.mrexcel.com
The code doesn't use a Windows hook so it is stable and won't crash excel.
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.