Enable mouse wheel scrolling in combobox/listbox

浪尽此生 提交于 2019-12-01 08:08:06

问题


I am building a userform in Excel 2007 using VBA and would like to know how to enable mouse wheel scrolling of comboboxes and listboxes.

Do I need a more recent version of Office to get this feature or is it something that can be coded for?


回答1:


if using 32-bit Windows then the solutions by PETER THORNTON using WIN32 API calls on the below page will help:

MSDN Forums - Visual Basic For Applications: Mouse scroll in UserForm ListBox in Excel 2010

The OP on that page was using Excel 2010 but as it's API calls doing the work, so long as you are using 32-bit Windows then that should work for you too.

Philip



来源:https://stackoverflow.com/questions/15992475/enable-mouse-wheel-scrolling-in-combobox-listbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!