I am trying to prevent users from using cut, copy, or drag/ drop in a certain file. I used the following code:
Private Sub Workbook_DeActivate()
Application.CutCopyMode = False
Application.CellDragAndDrop = False
End Sub
This seems to give me the desired result, EXCEPT that once I close this file the applications are still deactivated. I need to disable the applications only in this file.
As a side effect, I presently cannot use cut & copy in other files. I can use drag & drop (but only after I manually select that option when going to tools, options, edit.
Any ideas?
Thanks
Private Sub Workbook_DeActivate()
Application.CutCopyMode = False
Application.CellDragAndDrop = False
End Sub
This seems to give me the desired result, EXCEPT that once I close this file the applications are still deactivated. I need to disable the applications only in this file.
As a side effect, I presently cannot use cut & copy in other files. I can use drag & drop (but only after I manually select that option when going to tools, options, edit.
Any ideas?
Thanks