Hello and thanks for your time.
[I am using Microsoft Office 2013]
I have prevented users from copying/pasting within a worksheet with the following VBA code (found online):
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.CutCopyMode = False
Application.CellDragAndDrop = False
End Sub
I would now like to create a MsgBox when users attempt to copy/paste informing them that this function has been disabled.
Is there a simple line of code to do this?
I have found other (more complicated solutions) to do this but have found that they do not work as successfully and wish to keep the simple code above.
Any help would be much appreciated
LRT
[I am using Microsoft Office 2013]
I have prevented users from copying/pasting within a worksheet with the following VBA code (found online):
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.CutCopyMode = False
Application.CellDragAndDrop = False
End Sub
I would now like to create a MsgBox when users attempt to copy/paste informing them that this function has been disabled.
Is there a simple line of code to do this?
I have found other (more complicated solutions) to do this but have found that they do not work as successfully and wish to keep the simple code above.
Any help would be much appreciated
LRT