ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to cancel the right mouse button (https://www.excelbanter.com/excel-programming/344360-how-cancel-right-mouse-button.html)

filo666

how to cancel the right mouse button
 
Hi, I'm tryng to accomplish something with the beforerightclick method, I
want when the user press the right mouse button, the menu that normaly
appears (Cut Copy Paste .....),doesn't appears so the user isn't abble to
cut, copy, paste or change the format of the cells
TIA

Jim Rech

how to cancel the right mouse button
 
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)
Cancel = True
End Sub


--
Jim
"filo666" wrote in message
...
| Hi, I'm tryng to accomplish something with the beforerightclick method, I
| want when the user press the right mouse button, the menu that normaly
| appears (Cut Copy Paste .....),doesn't appears so the user isn't abble to
| cut, copy, paste or change the format of the cells
| TIA



filo666

how to cancel the right mouse button
 
don't I've just solved my problem:

Cancel=true

Thanks

"filo666" wrote:

Hi, I'm tryng to accomplish something with the beforerightclick method, I
want when the user press the right mouse button, the menu that normaly
appears (Cut Copy Paste .....),doesn't appears so the user isn't abble to
cut, copy, paste or change the format of the cells
TIA



All times are GMT +1. The time now is 10:35 AM.

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