ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Prevent Drag & Drop (https://www.excelbanter.com/excel-discussion-misc-queries/41582-prevent-drag-drop.html)

DaveyC4S

Prevent Drag & Drop
 
Hi

I have produced a protected worksheet with a mixture of locked and unlocked
cells. I would like to prevent the ability to drag and drop unlocked cells
as a function of the worksheet. Currently it is possible to drag one
unlocked cell onto another.

I know the drag and drop function can be turned off in ToolsOptions but
this is not inherited in the workbook after closing.

Any help greatly appreciated

Dave

Bob Umlas

Turn it off in VBA in the workbook_open event
You can record it to see the syntax.

"DaveyC4S" wrote in message
...
Hi

I have produced a protected worksheet with a mixture of locked and

unlocked
cells. I would like to prevent the ability to drag and drop unlocked

cells
as a function of the worksheet. Currently it is possible to drag one
unlocked cell onto another.

I know the drag and drop function can be turned off in ToolsOptions but
this is not inherited in the workbook after closing.

Any help greatly appreciated

Dave




Stefi

Put
Application.CellDragAndDrop = False
in Workbook_Open.
Regards,
Stefi


€˛DaveyC4S€¯ ezt Ć*rta:

Hi

I have produced a protected worksheet with a mixture of locked and unlocked
cells. I would like to prevent the ability to drag and drop unlocked cells
as a function of the worksheet. Currently it is possible to drag one
unlocked cell onto another.

I know the drag and drop function can be turned off in ToolsOptions but
this is not inherited in the workbook after closing.

Any help greatly appreciated

Dave



All times are GMT +1. The time now is 08:54 PM.

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