A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to forbid ctrl+c and ctrl+X in sheet?



 
 
Thread Tools Display Modes
  #1  
Old December 23rd, 2006, 08:23 AM posted to microsoft.public.excel.setup
GR
external usenet poster
 
Posts: 31
Default How to forbid ctrl+c and ctrl+X in sheet?

How to forbid ctrl+c and ctrl+X in sheet?
  #2  
Old December 23rd, 2006, 09:04 PM posted to microsoft.public.excel.setup
toni.gee
external usenet poster
 
Posts: 36
Default How to forbid ctrl+c and ctrl+X in sheet?

Ctrl +C (copy) and Ctrl +X (cut) are Windows shortcut keys rather than Excel
specific and I don't think its possible to disable them in Excel. I'm not
even sure that it's possible to do it in Windows - there may be a registry
tweak, but I don't know it.

What you could do is write a macro that does nothing (or something
neglibible - say, display a message that the key combination is not
available) and assign the macro to the Ctrl +C and Ctrl +X combinations. This
will not, however, prevent copying and cutting from the menus, toolbars or
context menus.

"GR" wrote:

How to forbid ctrl+c and ctrl+X in sheet?

  #3  
Old December 24th, 2006, 03:39 AM posted to microsoft.public.excel.setup
kassie
external usenet poster
 
Posts: 76
Default How to forbid ctrl+c and ctrl+X in sheet?

You can read about this at:
http://msdn2.microsoft.com/en-us/lib...ffice.11).aspx

You could use
With Application
.OnKey "^c", "" 'Copy shortcut disabled
.OnKey "^v", "" 'Paste shortcut disabled
End With

This basically sets these keys to nothing ("")

To enable them again, you would use
With Application
.OnKey "^c" 'Copy shortcut enabled
.OnKey "^v" 'Paste shortcut enabled
End With

Without the "" at the end, it returns them to their original state
--
Hth

Kassie Kasselman


"GR" wrote:

How to forbid ctrl+c and ctrl+X in sheet?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.