ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Disable rightc click (https://www.excelbanter.com/excel-programming/314597-disable-rightc-click.html)

No Name

Disable rightc click
 
Hi All,

I want to disable right click in a workbook but allow the
user to make a copy of any sheet into another book. How
can I achieve these? Thanks.

Tom Ogilvy

Disable rightc click
 
In the sheet modules of the sheets where you don't want a right click
capability put in a BeforeRightClick event

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

--
Regards,
Tom Ogilvy


wrote in message
...
Hi All,

I want to disable right click in a workbook but allow the
user to make a copy of any sheet into another book. How
can I achieve these? Thanks.





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com