+ Reply to Thread
Results 1 to 7 of 7

Disable secondary mouse button

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    Germiston, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    12

    Disable secondary mouse button

    I do not want the user to be able to change anything in the workbook - they must only insert information
    I have used the OnKey command to disable esc,tab,F1,F2 etc and am also using DisplayFullScreen and so on
    I now have to disable the secondary mouse button

    Perhaps there is an easier way of doing all this disabling as it is pretty long the way I'm going

  2. #2
    Registered User
    Join Date
    08-30-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Disable secondary mouse button

    I am using the code below in one of my spreadsheets. It disables right clicking and displays a message.
    Paste it in 'ThisWorkbook' module.

    Please Login or Register  to view this content.
    Regards.

  3. #3
    Registered User
    Join Date
    08-09-2013
    Location
    Germiston, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Disable secondary mouse button

    Hi
    Thanks for the code but I am new to VBA and the code makes no sense to me the way it is written

  4. #4
    Registered User
    Join Date
    08-09-2013
    Location
    Germiston, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Disable secondary mouse button

    The code runs and the msgbox appears but the mouse secondary button(right) still works
    Any ideas what im doing wrong?

  5. #5
    Registered User
    Join Date
    08-30-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Disable secondary mouse button

    Hi Hadj,
    Did you paste it in 'ThisWorkbook'? See attached image.
    Right_Click.jpg

    Regards

  6. #6
    Registered User
    Join Date
    08-09-2013
    Location
    Germiston, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Disable secondary mouse button

    Hi
    Thanks a lot - works just the way I want
    Regards

  7. #7
    Registered User
    Join Date
    08-09-2013
    Location
    Germiston, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Disable secondary mouse button

    Hi
    Thanks a lot - works just the way I want
    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. secondary mouse button
    By Hasty in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2006, 09:30 AM
  2. Replies: 3
    Last Post: 01-27-2005, 03:06 PM
  3. [SOLVED] Disable mouse?
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-05-2005, 11:06 AM

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