ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Differentiating Cell Drag Copy (https://www.excelbanter.com/excel-programming/339459-differentiating-cell-drag-copy.html)

Gap

Differentiating Cell Drag Copy
 
Hello,

Is there a way to detect that the event (WorkSheet_Change or any other)
occured due to a cell drag copy of a cell and not a regular cell edit?

Thankyou.

Sincerly
Gap


Vic Eldridge[_3_]

Differentiating Cell Drag Copy
 
Something like this perhaps,

Private Sub Worksheet_Change(ByVal Target As Range)
Static tmr As Single
If Timer - tmr < 0.1 Then
MsgBox "Dragged & Dropped"
End If
tmr = Timer
End Sub


Regards,
Vic Eldridge


"Gap" wrote:

Hello,

Is there a way to detect that the event (WorkSheet_Change or any other)
occured due to a cell drag copy of a cell and not a regular cell edit?

Thankyou.

Sincerly
Gap




All times are GMT +1. The time now is 10:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com