Results 1 to 8 of 8

Command to tie mouse wheel click to a macro same way as Worksheet_BeforeRightClick

Threaded View

  1. #1
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Command to tie mouse wheel click to a macro same way as Worksheet_BeforeRightClick

    I'd like to have a click on the scroll wheel trigger a macro execution similar to this:

    Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
    Cancel = True
    MsgBox "You clicked right mouse button."
    End Sub
    Is there a way to do this? If tying code execution to wheel click is not possible, I'd be willing to tie it to scrolling the wheel.

    Thanks
    Last edited by luv2glyd; 03-06-2013 at 05:37 PM.
    You either quit or become really good at it. There are no other choices.

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