Stop pasting

  • Thread starter Thread starter Salza
  • Start date Start date
S

Salza

Hi all,

How to stop users from pasting a text/number into an unprotected cell?
Please help. Thanks.

Regards,
Salza
 
Salza

You could set up a Worksheet_SelectionChange() event. The code below will
stop a user pasting in cell C5 of the worksheet behind which the code
resides

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("C5")) Is Nothing Then
Application.CutCopyMode = False
End If
End Sub
 
Depending on what your critria is you may be able to use
validation on the DATA menu

Deb
 
Back
Top