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

Different AutoText Entries in Header and Footer

With lots of AutoText entries defined in your system, you may wonder why you can't see all of the ones you need when ...

Discover More

Calculating the Day of the Year

Need to know what day of the year a certain date is? You can figure it out easily using the formulas in this tip.

Discover More

Brackets around Footnote References

When you insert footnotes in a document, Word allows you to modify the formatting applied to the footnote references. ...

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)

Using AutoComplete with Disjointed Lists

AutoComplete can help you to more quickly enter information in a worksheet. How it works, behind the scenes, can affect ...

Discover More

Sequentially Inputting Information

When entering data in a worksheet, you may only want to add information to the cells in a particular range. You can ...

Discover More

Extracting Numbers within a Range

If you have a large number of values in a column, you may want to move the values that meet specific criteria to another ...

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 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 six minus 5?

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.