在组合框/列表框中启用鼠标滚轮滚动 [英] Enable mouse wheel scrolling in combobox/listbox

查看:1228
本文介绍了在组合框/列表框中启用鼠标滚轮滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VBA在Excel 2007中构建用户窗体,并希望知道如何启用鼠标滚轮滚动组合框和列表框。



我需要更新版本的Office才能获得此功能,还是可以编码的?

解决方案

如果使用32位Windows,则使用下面页面上的WIN32 API调用的 PETER THORNTON 解决方案将有助于:



MSDN论坛 - Visual Basic应用程序:在Excel 2010中的UserForm ListBox中的鼠标滚动



该页面上的OP使用Excel 2010,但它是API电话做这个工作,只要你使用32位Windows,那么这也应该适合你。



Philip


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?

解决方案

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

这篇关于在组合框/列表框中启用鼠标滚轮滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆