Enable mouse wheel scrolling in combobox/listbox

前端 未结 1 1846
攒了一身酷
攒了一身酷 2021-01-15 14:56

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 ve

1条回答
  •  囚心锁ツ
    2021-01-15 15:53

    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

    0 讨论(0)
提交回复
热议问题