Context menu suppression by right-click in Excel
Solved
supermoun
-
gfortin9 Posted messages 1 Status Member -
gfortin9 Posted messages 1 Status Member -
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
hello
remove the right-click menu from the mouse in one or more sheets.
To remove it on all sheets, put this in thisworkbook
To remove it on a single sheet, put this in each concerned sheet
--
Always zen
remove the right-click menu from the mouse in one or more sheets.
To remove it on all sheets, put this in thisworkbook
Private 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 sheet
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean) Cancel = True End Sub
--
Always zen
supermoun
Posted messages
39
Status
Member
7
Hello GBinforme,
Excuse the delay.
I tried it in the sheet, it’s ok.
For the workbook, it doesn’t work.
See you later