Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Restrict copy paste ability

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wana be xl master - 22 Feb 2006 18:53 GMT
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
Ron de Bruin - 22 Feb 2006 19:11 GMT
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

Signature

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

>I have a protect sheet with only few cells where users can enter data.
>
[quoted text clipped - 3 lines]
>
> Thanks
Jim Thomlinson - 22 Feb 2006 19:11 GMT
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
Signature

HTH...

Jim Thomlinson

> I have a protect sheet with only few cells where users can enter data.
>
[quoted text clipped - 3 lines]
>
> Thanks
wana be xl master - 22 Feb 2006 19:24 GMT
Owesome....Thanks to Ron and Jim
:)

> I have a protect sheet with only few cells where users can enter data.
>
[quoted text clipped - 3 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.