+ Reply to Thread
Results 1 to 5 of 5

Disable right click menu from comand button

  1. #1
    Registered User
    Join Date
    10-02-2003
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    46

    Disable right click menu from comand button

    Dear All,
    I Have an excel sheet with many command button for the user to click and use filter. How can I disable the right click menu from the button so that the user will not change any values including resizing.
    Thanks in advance to all

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Disable right click menu from comand button

    You can disable right-clicking on the entire sheet by adding this code to that specific sheet's VBA:
    Please Login or Register  to view this content.
    -Moo

  3. #3
    Registered User
    Join Date
    10-02-2003
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    46

    Re: Disable right click menu from comand button

    Dear Moo,
    Thanks for you support. I tried this code, its still allow you to right click on shapes and buttons. I want something close to this for command buttons and even to shapes also will do. Thanks again.

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Disable right click menu from comand button

    The only other way I can think of is to protect the Worksheet. By default, form controls are locked, as are cells in the spreadsheet. If you protected the worksheet and unlocked only the cells a user would need to interact with, it might do what you need.

    - Moo

  5. #5
    Registered User
    Join Date
    10-02-2003
    Location
    Kuwait
    MS-Off Ver
    2016
    Posts
    46

    Re: Disable right click menu from comand button

    Protect sheet is not allowing to run macros

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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