Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Disable right click

Hi,
I am trying to figure out how to disable a user from being able to right
click in an excel spreahsheet. If anyone knows how please help!

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Disable right click

Grüezi Rich

Rich Cooper schrieb am 14.05.2004

I am trying to figure out how to disable a user from being able to right
click in an excel spreahsheet. If anyone knows how please help!


Open the codemodule of the table and copy the following code to the
codewindow:

Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, _
Cancel As Boolean)
Cancel = True
End Sub

Alt+Q closes the VBA-editor.

--
Mit freundlichen Grüssen

Thomas Ramel
- MVP für Microsoft-Excel -

[Win 2000Pro SP-4 / xl2000 SP-3]
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Disable right click

Hi Rich

You can use this event in the thisworkbook module

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

But you still can right click on the menubars and worksheet tabs.
If you don't want that post back

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Rich Cooper" wrote in message ...
Hi,
I am trying to figure out how to disable a user from being able to right
click in an excel spreahsheet. If anyone knows how please help!

Thanks




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
disable right click on mouse jatman Excel Discussion (Misc queries) 2 June 5th 08 12:15 AM
Disable Auto save on Right Click Dvorakian Excel Discussion (Misc queries) 1 June 25th 06 12:34 PM
How do I disable the Alt-Click research service? Laurel Excel Discussion (Misc queries) 0 August 25th 05 08:17 PM
disable right mouse click on a scatter graph? Engin H. Charts and Charting in Excel 3 June 30th 05 02:57 PM
Disable Window Right Click Soniya[_2_] Excel Programming 0 February 23rd 04 11:51 AM


All times are GMT +1. The time now is 09:22 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"