PC Review


Reply
Thread Tools Rate Thread

Capture the Source Address of copied data

 
 
D Riggins
Guest
Posts: n/a
 
      13th Nov 2008
I am trying to develop code that reformats source and destination cells after
a copy/paste, cut/paste or drag/drop operation is performed by a user. I
understand how to use the Worksheet_change event to identify the destination
(target) cell, but I have been unable to figue out how to capture the address
of the source cell.

Has anyone figured this out?

 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      13th Nov 2008
It seems to me that if you are copying a range, you would know where the
range is. If it is a selection, then it would be Selection.Address. All of
the other references would have to be either cells or range addressess, or
object variables that represent a range address. Just capture that address
in as a string variable before executing the copy. Then you can use the
string variable to come back to the copied range location.

"D Riggins" wrote:

> I am trying to develop code that reformats source and destination cells after
> a copy/paste, cut/paste or drag/drop operation is performed by a user. I
> understand how to use the Worksheet_change event to identify the destination
> (target) cell, but I have been unable to figue out how to capture the address
> of the source cell.
>
> Has anyone figured this out?
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copied Pivot Tables with same data source Visakha Microsoft Excel Programming 0 30th Oct 2009 09:46 PM
how to change old data source reference from copied pivot tables arun Microsoft Excel Misc 2 20th May 2009 01:13 PM
how to change old data source reference from copied pivot tables arun Microsoft Excel Misc 0 20th May 2009 08:06 AM
Cannot change data source for copied charts MrN Microsoft Excel Charting 1 6th May 2009 05:59 PM
Named-range source-data for pie charts on copied worksheets ashley73@gmail.com Microsoft Excel Charting 4 19th Mar 2007 05:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:01 PM.