Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 1
Default Disabling Right Click Menu

Can anyone tell me the code to disable the right click
menu on a worksheet?
  #2   Report Post  
Posted to microsoft.public.excel.programming
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 *



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 218
Default Disabling Right Click Menu

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling click and right-click on the Picture I inserted in an Excel document [email protected] Excel Worksheet Functions 1 June 2nd 06 09:13 PM
Disabling the Tools Menu Rich Cooper Excel Programming 2 May 14th 04 02:37 PM
Disabling Menu Options Neil Warwick Excel Programming 1 January 18th 04 10:02 PM
Disabling standart menu options Dusan Excel Programming 3 November 24th 03 11:30 AM
Disabling menu items in VBE Michael Singmin Excel Programming 1 October 10th 03 01:39 PM


All times are GMT +1. The time now is 01:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"