Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying and Pasting Cells 1

Status
Not open for further replies.

tigercrap

Technical User
Jul 6, 2004
19
US
I have a protected workbook that i sent out to other personnel and all they have to do is data entry. How can i prevent someone from copying cells and pasting them over other cells on the same worksheet or workbook?

Thanks
Tim in Iraq
 
If the worksheet is protected then they cannot do anything to the protected cells. Is there some info missing from your Q?
 
Well the unprotected cells are for data entry, so I am trying to prevent someone from copying any cells over those unprotected data entry cells. Thanks for replying!

Tim in Iraq
 
Not without code

If you want to use code then this will take care of most attempts to copy/paste
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.CutCopyMode = False
End Sub

This would go in the WORKSHEET module

Rgds, Geoff

"Three things are certain: Death, taxes and lost data. Guess which has occurred"

Please read FAQ222-2244 before you ask a question
 
Great...I'll try that. I was going to try also:

Application.CopyObjectsWithCells = False

I appreciate your help!

Tim in Iraq
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top