+ Reply to Thread
Results 1 to 3 of 3

Using the mouse wheel scroll up/down event to change graph axis

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    Cornwall, England
    MS-Off Ver
    Excel 2010 (Work) O365Home (Home)
    Posts
    94

    Using the mouse wheel scroll up/down event to change graph axis

    Hi,

    Is there away to make the minimum and maximum scales on a graph change by scrolling up or down with your mouse wheel, so in effect you could artificially zoom in or out on your chart?

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Using the mouse wheel scroll up/down event to change graph axis

    You would need to use API to capture mouse scrolling events as other than a few activex controls, which you can not use on a chartsheet, no scrolling events are exposed.

    This is a VB6 example but you might be able to adapt it if you think it is worthwhile
    http://www.vb6.us/tutorials/interfaceing-scroll-mouse
    Last edited by Andy Pope; 09-24-2009 at 08:25 AM.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    09-22-2009
    Location
    Cornwall, England
    MS-Off Ver
    Excel 2010 (Work) O365Home (Home)
    Posts
    94

    Re: Using the mouse wheel scroll up/down event to change graph axis

    Hi Andy

    Thanks for your reply, I'll have a look at the example, it may take a while, I'm very much a VBA beginner

+ Reply to 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