disable right mouse button menu

tbablue

Active Member
Joined
Apr 29, 2007
Messages
466
Office Version
  1. 365
Platform
  1. Windows
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
ActiveWorkbook.Worksheets("UTILISATION").Calculate
End Sub

Is there a simple way to disable the menu that appears as a result of clicking the RIGHT mouse button? As per the code above - I wanna use the right button to update my sheet; the workbook is set for manual calculation.

Cheers

Ken
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

kpark91

Well-known Member
Joined
Jul 15, 2010
Messages
1,582
After the calculation.

How about putting
Code:
Cancel = True
?
 

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,941
F9 will recalculate your workbook and shift+F9 will recalculate just a sheet.

There is plenty of code out there to delete items off of your right click menu if you want to go that route, but it will delete it for all workbooks and not just this one unless you add all those menu options back.

It may be a bigger task than you really want, but there is plenty of code to be searched on this board to do it if you really wanted to. You can also cancel your event at the end of it too.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,321
Messages
5,836,616
Members
430,442
Latest member
Zephreo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top