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

I have a protect sheet with only few cells where users can enter data.

Is there anyway to restrict users not to do a copy paste in those areas?

Any help greatly appreciated.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Restrict copy paste ability

Hi

With code you can use this event in the Thisworkbook module

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Application.CutCopyMode = False
End Sub

You must also disable drag and drop



--
Regards Ron de Bruin
http://www.rondebruin.nl


"wana be xl master" wrote in message
...
I have a protect sheet with only few cells where users can enter data.

Is there anyway to restrict users not to do a copy paste in those areas?

Any help greatly appreciated.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Restrict copy paste ability

Here is some selection change code that you need to put into the specified
sheet...
(Right click the sheet tab and select Veiw Code)

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
with Application
If .CutCopyMode = xlCopy Then .CutCopyMode = False
If .CutCopyMode = xlCut Then .CutCopyMode = False 'Prevents Cut
end with
End Sub
--
HTH...

Jim Thomlinson


"wana be xl master" wrote:

I have a protect sheet with only few cells where users can enter data.

Is there anyway to restrict users not to do a copy paste in those areas?

Any help greatly appreciated.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Restrict copy paste ability

Owesome....Thanks to Ron and Jim
:)

"wana be xl master" wrote:

I have a protect sheet with only few cells where users can enter data.

Is there anyway to restrict users not to do a copy paste in those areas?

Any help greatly appreciated.

Thanks

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
RESTRICT TO PASTE VALUES ONLY FARAZ QURESHI Excel Discussion (Misc queries) 3 September 8th 08 04:06 PM
RESTRICT PASTE Gator Girl Excel Worksheet Functions 0 August 29th 07 07:46 PM
Ability to paste from Picture Manager to Excel New SMS Admin Setting up and Configuration of Excel 1 September 17th 06 04:23 AM
Have lost the ability to paste from the keyboard or menu Bob Reynolds Excel Discussion (Misc queries) 1 January 9th 06 05:44 PM
How do I restrict data movement (cut & paste) to only one column? Kev Nurse Excel Discussion (Misc queries) 8 February 15th 05 02:41 AM


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