Preventing cutting/pasting

A

andy62

This code from Elkar when placed in VBE ThisWorkbook seems to do a nice job
preventing a user from cutting/pasting in a workbook. Is there a way I can
modify it for use only on a certain range within one sheet? How about two
non-continguous ranges on the same sheet? TIA

Here is the code from another post (credits to Elkar):

Private Sub Workbook_Activate()
Application.CutCopyMode = None
End Sub

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top