Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This was exatly what I needed. Thank you Tom! It works perfectly.
Tom Hutchins skrev: I htink you are disabling cut/copy/drag temporarily, but it is getting re-enabled by subsequent operations. Instead of the Workbook_Open event, use the Workbook_SheetSelectionChange event. Every time any cell is selected, cut/copy/drag is disabled. This event code needs to be in the ThisWorkbook module: Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Application.CutCopyMode = False Application.CellDragAndDrop = False End Sub Hope this helps, Hutch "johnny" wrote: I want to disable this two function when I open a workbook. I've tryed both this code: Private Sub Workbook_Open() Application.CellDragAndDrop = False Application.CutCopyMode = False End Sub and Private Sub WorkbookOpen(ByVal Wb As Workbook) Application.CellDragAndDrop = False Application.CutCopyMode = False End Sub but no one of them will work the right way. I've put it both in a module, in "This workbook" and in the actuall sheet. Anybody got an idea whats wrong? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Shortcut to switch from "fill down" to "copy" with mouse drag | Excel Discussion (Misc queries) | |||
how can I disable "cutting cells" and "drag and drop "in excel ? | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) | |||
disable cell "drag and drop" for a cell/range meeting given condit | Excel Programming |