Pop up menus in Excel

U

uglydennise

I want to hide or disable the pop up menu that appears everytime i
right click a worksheet tab. is this possible?
 
S

ShaneDevenshire

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top