Thread
:
Trap CTRL+C keypress event
View Single Post
#
2
Posted to microsoft.public.excel.programming
Jim Rech
external usenet poster
Posts: 2,718
Trap CTRL+C keypress event
You use OnKey to attach a macro to a key press (supplanting the default
behavior).
So..
Sub TrapCtrlC()
Application.OnKey "^c", "MyCopyMacro"
End Sub
Sub MyCopyMacro()
'Your code here
End Sub
--
Jim Rech
Excel MVP
Reply With Quote
Jim Rech
View Public Profile
Find all posts by Jim Rech