ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   right click (https://www.excelbanter.com/excel-programming/411628-right-click.html)

geebee

right click
 
hi,

i would like to know how i can prvent users from right-clicking on a pivot
table?

htanks in advance,
geebee


Bernie Deitrick

right click
 
geebee,

Copy this code, right-click the sheet tab, select "View Code" and paste the code into the window
that appears.
You can limit which cells it disables by using the Target range object....

HTH,
Bernie
MS Excel MVP

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



"geebee" (noSPAMs) wrote in message
...
hi,

i would like to know how i can prvent users from right-clicking on a pivot
table?

htanks in advance,
geebee




geebee

right click
 
hi,

thanks. how about disabling a "double click"?

geebee


"Bernie Deitrick" wrote:

geebee,

Copy this code, right-click the sheet tab, select "View Code" and paste the code into the window
that appears.
You can limit which cells it disables by using the Target range object....

HTH,
Bernie
MS Excel MVP

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



"geebee" (noSPAMs) wrote in message
...
hi,

i would like to know how i can prvent users from right-clicking on a pivot
table?

htanks in advance,
geebee





Bernie Deitrick

right click
 
geebee,

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

HTH,
Bernie
MS Excel MVP


"geebee" (noSPAMs) wrote in message
...
hi,

thanks. how about disabling a "double click"?

geebee


"Bernie Deitrick" wrote:

geebee,

Copy this code, right-click the sheet tab, select "View Code" and paste the code into the window
that appears.
You can limit which cells it disables by using the Target range object....

HTH,
Bernie
MS Excel MVP

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



"geebee" (noSPAMs) wrote in message
...
hi,

i would like to know how i can prvent users from right-clicking on a pivot
table?

htanks in advance,
geebee








All times are GMT +1. The time now is 12:02 PM.

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