Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can anyone tell me the code to disable the right click
menu on a worksheet? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Tom" wrote in message
... Can anyone tell me the code to disable the right click menu on a worksheet? Hi Tom, Put this procedure in the code module located behind the workhseet whose shortcut menu you want to disable: Private Sub Worksheet_BeforeRightClick( _ ByVal Target As Range, Cancel As Boolean) Cancel = True End Sub -- Rob Bovey, MCSE, MCSD, Excel MVP Application Professionals http://www.appspro.com/ * Please post all replies to this newsgroup * * I delete all unsolicited e-mail responses * |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This will toggle the enabled status of the right-click
menu: Sub TogRightClick() With Application.CommandBars("Cell") ..Enabled = Not .Enabled End With End Sub Regards, Greg -----Original Message----- Can anyone tell me the code to disable the right click menu on a worksheet? . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Disabling click and right-click on the Picture I inserted in an Excel document | Excel Worksheet Functions | |||
Disabling the Tools Menu | Excel Programming | |||
Disabling Menu Options | Excel Programming | |||
Disabling standart menu options | Excel Programming | |||
Disabling menu items in VBE | Excel Programming |