Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Capturing Excel Copy/Paste/Cut events

Ram,
Not sure if it is workable for you, but if you share the workbook, can you
monitor the change history ?
Won't catch a copy though.

NickHk

"RNG" wrote in message
...
Thanks to both for the responses!

- Ram


"DM Unseen" wrote:

you can use the Application.Worksheet_Change event to capture pasting
cells, but a more complete solution is to use the Application.Onkey
function and rewrite cut/copy/paste key shortcuts. Since in Excel(2000
and higer) you can also capture events from commandbuttons you could
aslo hook your code to the cut/copy/paste buttons so you also cover
that route. Nasty, but should be workable.

remember that excel cannot do anything while in cell editing mode, so
cutting/copying/pasting *inside* a cell cannot be detected from an app
running inside the Excel thread. Any code that needs to act on cell
text(I'm not sure you need it) needs to be out of process using
subclassing and window hooks(brrr). You did not write which clipboard
formats you wanted to act upon, but I suspect Ranges is your primary
concern.

DM Unseen




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Capturing excel insert/delete events. Gaurav Nanda[_2_] Excel Worksheet Functions 1 July 10th 09 11:09 PM
Capturing Insert/Delete Events in Excel Sheet using c# Gaurav Nanda[_2_] Excel Worksheet Functions 0 July 10th 09 06:14 AM
Capturing Print and Print Preview events Jignesh Bhakta Excel Programming 1 April 26th 04 08:32 PM
Capturing Sheet Events MWE Excel Programming 4 January 18th 04 07:56 PM
Capturing Checkbox Events Mark D'Agosta Excel Programming 8 October 13th 03 01:29 AM


All times are GMT +1. The time now is 05:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"