disable right mouse button menu

tbablue

Active Member
Joined
Apr 29, 2007
Messages
450
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
 

Some videos you may like

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

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,939
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,514
Messages
5,596,610
Members
414,080
Latest member
penguin23

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