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

How can I prevent a menu popping up when the user Right Clicks - anywhere in
the workbook. Excel 2003.

TIA
Sandy

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Prevent Right Click Menu

Hi,

Code in the Thisworkbook object to stop right clicking on sheet.

Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target
As Range, Cancel As Boolean)

Cancel = True

End Sub

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Sandy" wrote in message
...
How can I prevent a menu popping up when the user Right Clicks - anywhere
in the workbook. Excel 2003.

TIA
Sandy


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Prevent Right Click Menu

In the ThisWorkbook module

Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, _
ByVal Target As Range, Cancel As Boolean)

Cancel = True

End Sub

Regards,
Peter T

"Sandy" wrote in message
...
How can I prevent a menu popping up when the user Right Clicks - anywhere

in
the workbook. Excel 2003.

TIA
Sandy



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Prevent Right Click Menu

Excellent

Thank you both
Sandy

"Sandy" wrote in message
...
How can I prevent a menu popping up when the user Right Clicks - anywhere
in the workbook. Excel 2003.

TIA
Sandy


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
Undo button in the context menu (right click menu) Madiya Excel Programming 7 April 7th 08 04:33 PM
Custom Context menu (Right click menu) not working in sheet changeevent. Madiya Excel Programming 3 February 11th 08 01:24 PM
Add menu item to right-click menu [email protected] Excel Programming 1 July 15th 06 10:32 AM
Adding a menu item right click menu when clicking on a single. Andoni[_28_] Excel Programming 0 September 2nd 04 10:23 PM
Adding menu to the mouse right click pop-up menu Jack Excel Programming 1 February 12th 04 05:23 AM


All times are GMT +1. The time now is 12:50 AM.

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

About Us

"It's about Microsoft Excel"