Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Drag and Drop

How we can track event of Drag and Drop???
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Drag and Drop

Do you mean Drag And Drop of cells on a worksheet? If so, you can
use the Workbook_SheetChange event. It will run twice -- once
when the original cell changes to an empty cell and then again
the value is placed in the new cell. In the ThisWorkbook code
module, you code like

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target
As Range)
Debug.Print Sh.Name, Target.Address, Target.Value
End Sub





--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Drag and Drop" <Drag and wrote
in message
...
How we can track event of Drag and Drop???



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Drag and Drop

All right by my pb is quite different : I need to catch the drag&drop event
to perform some actions in another area of the spreadsheet. As a result, I
want the dragged and dropped cells unchanged by the event.


"Chip Pearson" wrote:

Do you mean Drag And Drop of cells on a worksheet? If so, you can
use the Workbook_SheetChange event. It will run twice -- once
when the original cell changes to an empty cell and then again
the value is placed in the new cell. In the ThisWorkbook code
module, you code like

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target
As Range)
Debug.Print Sh.Name, Target.Address, Target.Value
End Sub





--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Drag and Drop" <Drag and wrote
in message
...
How we can track event of Drag and Drop???




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
Drag & Drop Freshman Excel Worksheet Functions 1 November 5th 09 08:26 AM
drag and drop sramsey Excel Discussion (Misc queries) 5 February 22nd 08 09:35 AM
Drag and drop Bonzo123 New Users to Excel 2 June 13th 05 09:05 AM
Drag and Drop Help! Peter[_51_] Excel Programming 2 December 23rd 04 08:22 AM
Drag and Drop Nath Excel Programming 1 June 1st 04 02:03 PM


All times are GMT +1. The time now is 02:18 AM.

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

About Us

"It's about Microsoft Excel"