VBA Help to Scroll with Wheel Mouse in ListBox

Phixtit

Active Member
Joined
Oct 23, 2008
Messages
346
How do I setup the ListBox Properties to Scroll Up & Down through List with Wheel Mouse?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Solved! :)

Thanks for a point in the right direction.
I tried the example there but it kept freezing excel.

I then figured it out & HERE is a working example.
 
Upvote 0
Phixtit: Your link needs a user to sign in before viewing postings. Can you post the solution here?
 
Upvote 0
Why not just register there - it doesn't cost anything, and avoids any issues with simply nicking code.
 
Upvote 0
GROUPSDLG won't compile in MS Excel 2010 VBA. Is there a Reference I need to select? or something else I need to do?
 
Upvote 0
GROUPSDLG is the name of the userform where the listbox is.
 
Upvote 0
Hi, I know this is a old thread but I am trying to do the same right now with Excel 2010.
I tried the code posted by Phixtit, it still has bouts of freezing, and it has this quirk where the scrolling doesn't work immediately after the userform loads even though the form/listbox seems to have the focus.
I will have to click once on the userform/listbox, click once on a cell in Excel, then click once on the userform/listbox, before the scrolling can work.
Has anyone encountered the same issues and have workarounds/solutions?

Thanks!
 
Upvote 0
I gave up on it. However, another option is to Left-Click on a line while holding down that button and Drag the mouse arrow upwards or downwards and the records will scroll.
 
Upvote 0
Thanks MyronJames. I found a thread with sample code that is working very well. Link here. There is also another thread with code if the listbox is in a worksheet rather than in a user form. Link here.
Hope this helps others who have stumbled on this thread looking for the solution.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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