I have a problem, I need a specific macro to run, whenever the cutcopymode
is turned on, I mean I'll select some cells, and when I press Ctrl+c
or Ctrl+x
the macro test1
must run, I've tried this but nothing happens.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1:A10")) Is Nothing Or Target.Cells.Count > 1 Then Exit Sub
If Application.CutCopyMode = xlCopy Or Application.CutCopyMode = xlCut Then test1
End Sub