View Full Version : Activating mouse scroll wheel in listbox
ccRider246
03-02-2010, 07:27 AM
I have a listbox on a userform that is quite long. A vertical scroll bar is visible for scrolling down the list. I would like to be able to code this so that a mouse wheel will activate the scroll bar. Does anyone if that can be done?
Excel 2003 - Windows XP
Thanks,
Chris
Jan Karel Pieterse
03-02-2010, 07:39 AM
It can be done, but is not very stable, see:
http://www.eggheadcafe.com/forumarchives/VisualBasicwinapi/Jun2005/post23414144.asp
Bob Phillips
03-02-2010, 07:54 AM
What about http://www.gasanov.net/VBScroll.asp
ccRider246
03-02-2010, 07:55 AM
It can be done, but is not very stable, see:
http://www.eggheadcafe.com/forumarchives/VisualBasicwinapi/Jun2005/post23414144.asp
Thanks, Jan. I have a modal form so I am going to give this a shot. If it works for me I will mark this solved.
Chris
Jan Karel Pieterse
03-02-2010, 07:56 AM
xld: a great tool to scroll your code window, but it does not scroll my listboxes on userforms.
ccRider246
03-02-2010, 07:58 AM
What about http://www.gasanov.net/VBScroll.asp
I will check this out but on the surface it looks like it is designed to make the mouse wheel functional in the VBE. I need it functional in the userform listbox, not the VBE. But thank you, I will check it out.
Chris
Bob Phillips
03-02-2010, 08:03 AM
ACtually, I meant the Mabry ActiveX control, I gave the wrong URL, but it seems that site is not up any longer.
floraburris
11-08-2022, 08:14 PM
A fantastic tool for scrolling your code window, however it does not scroll my userform listboxes.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.