+ Reply to Thread
Results 1 to 2 of 2

How to Control Drag and Drop? (force "shift" drag-drop, disable into certain rows)

  1. #1
    Forum Contributor
    Join Date
    10-10-2018
    Location
    Calgary, Canada
    MS-Off Ver
    2016
    Posts
    214

    How to Control Drag and Drop? (force "shift" drag-drop, disable into certain rows)

    Hi there,

    thanks for your time. I have a sheet, and I have successfully controlled every possible shortcut - cut, copy, paste, insert. I have my own shortcut menu, and capture shortcut keys.

    The one area I haven't controlled is drag and drop. I don't mind the users dragging and dropping a whole row, so long as it is a "shift" drag and drop which just moves rows. I don't want users to do a non-shift drag and drop which is an overwrite. I also don't want the destination to be in the first 2 rows, which are heading rows.

    Is it possible to change all drag and drop operations to "shift" drag and drops, and disable drag and drop into the first 2 rows? Thanks for your help!!

  2. #2
    Forum Contributor
    Join Date
    10-10-2018
    Location
    Calgary, Canada
    MS-Off Ver
    2016
    Posts
    214

    Re: How to Control Drag and Drop? (force "shift" drag-drop, disable into certain rows)

    Hi there,

    I managed to accomplish controlling drag and drop now, but it was painful. It basically involves detecting it using a combination of Worksheet_Change and Worksheet_SelectionChange, then undoing the non-ctrl non-shift drag-drop or ctrl drag-drop, then mimicking the behavior using a cut and insert. However it is very slow, especially the undo part.

    Is there a faster way? Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to change Drag and Drop default from paste to insert? (without pressing "shift")
    By superlative in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-27-2018, 03:04 PM
  2. Replies: 1
    Last Post: 11-16-2017, 12:59 AM
  3. Which one is better to Disable Cut & Paste, Drag & Drop
    By RandyD123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2013, 06:37 PM
  4. Disable drag and drop and cut and paste
    By SteelDetailer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2006, 03:10 PM
  5. Drag Drop Cells "How-To"
    By Ricky S in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2006, 05:55 PM
  6. How to Disable drag and drop of Pictures from Excel
    By dshaffer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2006, 08:55 PM
  7. disable cell "drag and drop" for a cell/range meeting given condit
    By Valeria in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2005, 09:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1