ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Pop up menus in Excel (https://www.excelbanter.com/charts-charting-excel/130774-pop-up-menus-excel.html)

[email protected]

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


ShaneDevenshire

Pop up menus in Excel
 
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

--
Cheers,
Shane Devenshire


" wrote:

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




All times are GMT +1. The time now is 02:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com