Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
disable right click on mouse | Excel Discussion (Misc queries) | |||
Disable Auto save on Right Click | Excel Discussion (Misc queries) | |||
How do I disable the Alt-Click research service? | Excel Discussion (Misc queries) | |||
disable right mouse click on a scatter graph? | Charts and Charting in Excel | |||
Disable Window Right Click | Excel Programming |