Closed Thread
Results 1 to 6 of 6

Mousewheel-Scrolling in UserForm

  1. #1
    Registered User
    Join Date
    11-17-2009
    Location
    Bangladesh
    MS-Off Ver
    Excel 2003
    Posts
    3

    Exclamation Mousewheel-Scrolling in UserForm

    Hi,

    i want to know whether there is any way to make an MouseWheel-Event in VBA (Excel 2003) and send it to the scrollBars of my UserForm?
    Last edited by Edwood; 11-17-2009 at 07:52 AM.

  2. #2
    Registered User
    Join Date
    11-17-2009
    Location
    Bangladesh
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Mousewheel-Scrolling in UserForm

    ok i found a solution myself. I just bind the ScrollTop-Property to a slider-control (Scroll-Event). This Slider-Control gets the Focus when clicking on the UserForm. Not an elegant solution - But it does the job

  3. #3
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Mousewheel-Scrolling in UserForm

    hi Edwood,

    Welcome to the Forum

    Thanks for posting your solution. Can you please mark the post as solved (instructions are on the Rules page)?

    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Mousewheel-Scrolling in UserForm

    You can do it without a slider if you use API functions. See attached demo.
    Attached Files Attached Files
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    01-31-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Mousewheel-Scrolling in UserForm

    Can you please attach an excel file with the solution you have posted...

    Thank you

    Quote Originally Posted by Edwood View Post
    ok i found a solution myself. I just bind the ScrollTop-Property to a slider-control (Scroll-Event). This Slider-Control gets the Focus when clicking on the UserForm. Not an elegant solution - But it does the job

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Mousewheel-Scrolling in UserForm

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1