Context menu suppression by right-click in Excel
Solved
Hello everyone,
Is it possible, when opening an Excel workbook, to remove the right-click context menu in one or more sheets?
Thanks for the answer
Is it possible, when opening an Excel workbook, to remove the right-click context menu in one or more sheets?
Thanks for the answer
Configuration: Windows XP Firefox 2.0.0.12
3 answers
-
Contributorhello
remove the right-click menu from the mouse in one or more sheets.
To remove it on all sheets, put this in thisworkbookPrivate Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean) Cancel = True End Sub
To remove it on a single sheet, put this in each concerned sheetPrivate Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean) Cancel = True End Sub
--
Always zen -
Contributorhello
for the workbook, it doesn't work.
You surprise me a lot and verify that you have Workbook_SheetBeforeRightClick( in the VBA sheet of thisworkbook
--
Always zen -
Hello!
Sorry, interpretation error 8- /
Tourlou...