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

Hi,

Does someone know how to disable the right-click with a macro.
I would like to prevent the user using copy, past etc... in m
worksheets.

Thank you!

fre

--
Message posted from http://www.ExcelForum.com

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

Hi
on a worksheet basis you could use the following code in your worksheet
module:
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)
cancel=true
End Sub

--
Regards
Frank Kabel
Frankfurt, Germany


Hi,

Does someone know how to disable the right-click with a macro.
I would like to prevent the user using copy, past etc... in my
worksheets.

Thank you!

fred


---
Message posted from http://www.ExcelForum.com/


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 click Rich Cooper Excel Programming 2 May 14th 04 02:54 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 01:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"