• VBA Listbox Scroll

    • This topic has 1 reply, 1 voice, and was last updated 5 years ago.
    Author
    Topic
    #2252006

    I would like to be able to use the scroll wheel of the mouse to scroll through the items in a VBA ListBox in Word. I have found several bits of code online, all for Excel. None of them are recent, and none of them work. I don’t know if that’s because the code was written fro Excel, or if it’s outdated, or if I’m doing something wrong. I’m following the instructions faithfully, but when all of the code is in place, the mouse wheel doesn’t cause the list box to scroll. There are no errors when I compile, no errors at run-time.

    Can anyone offer Word-specific code to scroll a VBA list box? I will need this for both 32 bit and 64 bit Word 2016, but initially would be happy with 32 bit. (I can tweak for 64 bit when the time comes.)

    Many thanks.

    Viewing 0 reply threads
    Author
    Replies
    • #2252150

      I have solved the issue. Attached is a template that I found on the Internet that does what I want. It’s for Excel, but the module functions as expected in Word.

    Viewing 0 reply threads
    Reply To: VBA Listbox Scroll

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: