View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rob Bovey Rob Bovey is offline
external usenet poster
 
Posts: 811
Default Disabling Right Click Menu

"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 *