Drag and drop

D

Dave-R-W

Hi

I have a worksheet (Excel 2003) on which I need to disable drag and drop.
Doing so within the worksheet_activate area as shown below works fine, BUT
doing this also prevents the user copying in data from another open workbook.

How can I disable drag and drop, but allow pasting from another workbook?

Thanks
dave

Private Sub Workbook_Activate()
Application.CellDragAndDrop = False
End Sub
 
H

Homey

Try to turn on drag and drop with wrokbook deactivate event.
H
| Hi
|
| I have a worksheet (Excel 2003) on which I need to disable drag and drop.
| Doing so within the worksheet_activate area as shown below works fine, BUT
| doing this also prevents the user copying in data from another open
workbook.
|
| How can I disable drag and drop, but allow pasting from another workbook?
|
| Thanks
| dave
|
| Private Sub Workbook_Activate()
| Application.CellDragAndDrop = False
| End Sub
|
 
D

Dave-R-W

Hi

drag and drop is disabled using the deactivate event. A user can go to
another workbook and copy a cell, and paste it either in that workbook or
somewhere else, just not into the workbook I'm using. It's as if the
activate event clears the clipboard...

Data can be copied in from another office application - eg Word, but not
from another spreadsheet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top