Setting a Default for Shifting when Inserting

by Allen Wyatt
(last updated August 27, 2016)

3

When Col inserts cells into a worksheet (not rows, but cells), the process seems to take longer than it should because he always has to check to see if Excel will shift the displaced cells down or to the right. He always wants the cells to be shifted downward, so he is wondering if there is a way to make "shift down" the default.

As Col implied, when you choose some cells and the use the Insert Cells command, Excel displays a dialog box where you can indicate how you want the displaced cells shifted. This process can, indeed, seem to take quite a while if all you ever want to do is shift down when you insert. Unfortunately, there is no way to change the default in Excel.

The solution is to use a macro to do your inserting. It doesn't need to be a long one; for instance, the following will shift cells down when inserting:

Sub ShiftDown()
    Selection.Insert Shift:=xlDown
End Sub

Assign the macro to the Quick Access Toolbar or to a shortcut key, and you can easily shift cells down as you insert. All you need to do is to select the cells (or, indeed, entire rows) and then use the macro. If you want to create variations of the macro that always shift in different directions, all you need to do is change xlDown to xlUp, xlLeft, or xlRight.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (4078) applies to Microsoft Excel 2007, 2010, 2013, and 2016.

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

Printing a Draft of a Document

Need to print a copy of a document but you don't care if it looks as "pretty" as you want the final printout to look? You ...

Discover More

Detecting if the Insertion Point is Inside a Bookmark

When processing a document using a macro, you may need to know if the insertion point is within a bookmark or not. This is ...

Discover More

Understanding Subroutines

When developing macros, you can create subroutines. This is a great way to reuse common code and make your programming tasks ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Entering Data as Thousands

There are many different ways you may need to enter data in a worksheet. For instance, you might want to enter data in ...

Discover More

Can't Empty the Clipboard

The Clipboard is essential to move or copy information from one place in Excel to another. If you get an error when you try ...

Discover More

Pasting Excel Data within Word's Page Margins

The programs in the Microsoft Office suite are designed to work with each other easily. Sometimes there can be hiccups along ...

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}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. 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 6 - 4?

2016-08-29 08:44:28

Adam

I was not even thinking about this when the original email was sent, but a keystroke sequence which works (hearkening back to 2003 menu options) is alt+i+r (the old Insert menu, then row). It is an option without picking up the mouse.


2016-08-27 20:04:53

Alex B

The macro is obviously going to give you the quickest way of doing it, but inserting using keystrokes is already quite quick.

To Insert
Ctrl+"+"
followed by
"D" and enter

PS: if you don't use the numeric keypad it is likely to involve using the shift key to get the "+".


2016-08-27 08:46:30

sheldon hopkins

There is a 'permanent' way to shift cell direction upon pressing the enter key:

Click the File "tab" : select Options :
Advanced The first editing option
allows your to select the direction
of movement in three directions.

This is a permanent direction movement, and will have to be reset for other
movement after 'enter'.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu 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.