Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Disabling Dragging and Dropping.

Disabling Dragging and Dropping

Written by Allen Wyatt (last updated January 17, 2022)
This tip applies to Excel 97, 2000, 2002, and 2003


Adam knows how to disable drag-and-drop editing within Excel, using a macro, by setting the CellDragandDrop property for the Application object. He rightfully notes that this doesn't stop people from dragging information from other programs (such as Word or Outlook) and dropping that information into a worksheet. He wonders if there is a way to disable dragging and dropping into Excel regardless of the source.

The closest solution we've been able to find is a set of macros developed by Ken Puls and noted at this page:

http://www.vbaexpress.com/kb/getarticle.php?kb_id=373

The macros disable certain menu functions and shortcut keys, and thereby disallow cutting, copying, and pasting. Theoretically it also disables dragging and dropping, but only extensive testing with various programs will tell if it will work in Adam's situation.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11519) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Disabling Dragging and Dropping.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

What Line Am I On?

At the bottom of your document, on the status bar, you can see the line on which your insertion point is located. It is ...

Discover More

Calculating an IRR with Varying Interest Rates

You might wonder how you can calculate an IRR (internal rate of return) when the person repaying the loan pays different ...

Discover More

Exiting a For ... Next Loop Early

If you use For ... Next loops in your macros, make sure you give a way to jump out of the loop early. That way you can ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (menu)

Understanding Names

Excel provides the ability to define names that refer to cells or ranges of cells. These can then be used in your ...

Discover More

Quickly Updating Values

You can easily adjust the values in a range of cells by a certain amount. The key is to modify how you use the pasting ...

Discover More

Using an Input Mask

When you are entering information in a worksheet, it sure would be handy to have a way to "mask" the information being ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two less than 9?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.