Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to trap the CTRL+C (Window's copy event) in
Excel 2000. I want to know when a user press the CTRL+C, what is the cell(s) address or range. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I tried placing the code, and press CTRL+C, the event did not fire. Do I
need to do anything else besides placing the code? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thx, I placed the code in Auto_Open macro and it is working.
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hasan Nazeer wrote:
I tried placing the code, and press CTRL+C, the event did not fire. Do I need to do anything else besides placing the code? You need to execute it once. Regards, -- Beto Reply: Erase between the dot (inclusive) and the @. Responder: Borra la frase obvia y el punto previo. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trap show toolbar event | Links and Linking in Excel | |||
how can I trap the change event (Tab Press key) of these controls | Excel Worksheet Functions | |||
how can I trap the change event (Tab Press key) of these controls | Excel Worksheet Functions | |||
how to trap a event coming from a dll | Excel Programming | |||
KeyPress Event | Excel Programming |