Pop up menus in Excel

  • Thread starter Thread starter uglydennise
  • Start date Start date
U

uglydennise

I want to hide or disable the pop up menu that appears everytime i
right click a worksheet tab. is this possible?
 
Yes, but you must add VBA to your workbook. Specifically, you need to add
the BeforeRightClick event:

You can put this into the module of the sheet where you want to disable
right-click:

Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)
Cancel = True
End Sub

Or you can add the following code to the thisWorkbook module:

Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target
As Range, Cancel As Boolean)
Cancel = True
End Sub
 
Back
Top