Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll wheel in VBA

Status
Not open for further replies.

xwb

Programmer
Jul 11, 2002
6,828
GB
I was wondering whether to upgrade from Office 2003 to Office 2010. In Office 2010 VBA editor, does the scroll wheel work or is it the same as the old versions?
 
(mind you having posted that, should just say that mouse scroll wheel works fine in IDE in my copy of Office 2010)
 
The mouse scroll wheel also works in the 2003 IDE but it doesn't in the generated forms. For instance, if I create a userform with a list box named lbGreek and add
Code:
Private Sub UserForm_Initialize()
    lbGreek.AddItem "alpha"
    lbGreek.AddItem "beta"
    lbGreek.AddItem "gamma"
    lbGreek.AddItem "delta"
    lbGreek.AddItem "epsilon"
    lbGreek.AddItem "zeta"
    lbGreek.AddItem "eta"
    lbGreek.AddItem "theta"
    lbGreek.AddItem "iota"
    lbGreek.AddItem "kappa"
    lbGreek.AddItem "lambda"
    lbGreek.AddItem "mu"
    lbGreek.AddItem "nu"
    lbGreek.AddItem "xi"
    lbGreek.AddItem "omicron"
    lbGreek.AddItem "pi"
    lbGreek.AddItem "rho"
    lbGreek.AddItem "sigma"
End Sub
When I run the code, the scroll wheel doesn't work unless I add some extra bits to the VBA. Is it still the same on 2010?
 
Ah, no. I'm afraid the Office 2010 userforms suffer the same shortcomings as earlier versions when it comes to mouse wheel support.
 
That's a bit of a bugger. Thanks for the information on userforms.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top