Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default disable copy paste

That is nice code. I have used similar. The problem that I ran into was
things being pasted in from applications other than excel, or where the users
where dragging or filling down. Any easy fix for those?

"Jake Marx" wrote:

Hi Tim,

Tim wrote:
How do I disable the copy paste feature?


You could try disabling all the places copy/cut/paste appear in the menus
(including context menus), but you'd still have to deal with other ways
people can copy/paste (Ctrl+c, Ctrl+x, Ctrl+v, etc). So maybe the easiest
way is to put the following code behind the Worksheet(s) you wish to disable
pasting:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.CutCopyMode = False
End Sub

This will allow the user to copy or cut, but every time the selection is
changed to a new cell or range, the clipboard will be cleared.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default disable copy paste


"Jim Thomlinson" wrote in message
...
That is nice code. I have used similar. The problem that I ran into was
things being pasted in from applications other than excel, or where the

users
where dragging or filling down. Any easy fix for those?

http://www.excelforum.com/archive/in.../t-229810.html

/Fredrik


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default disable copy paste

Hi Jim,

Jim Thomlinson wrote:
That is nice code. I have used similar. The problem that I ran into
was things being pasted in from applications other than excel, or
where the users where dragging or filling down. Any easy fix for
those?


I don't know about denying the user from copying values in from another app,
but as Fredrik suggested, you can use Application.CellDragAndDrop = False to
prohibit users from copying down, filling, dragging cells, etc.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]

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
How do I disable copy/paste of cells, but allow data entry? tdkosta Excel Discussion (Misc queries) 2 July 27th 09 10:45 PM
Disable copy and paste Igneshwara reddy[_2_] Excel Worksheet Functions 0 March 12th 07 05:20 PM
how to disable copy paste buttons from from edit menu excel test Excel Discussion (Misc queries) 2 January 18th 07 05:00 PM
Disable copy paste option on a particular cell Dileep Chandran Excel Worksheet Functions 0 November 13th 06 05:28 AM
How do I disable the pop-ups that appear when I copy/paste, etc? Fiscal Al Excel Discussion (Misc queries) 1 October 31st 05 03:46 PM


All times are GMT +1. The time now is 08:27 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"