Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, and 2013. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Selective Undo.

Selective Undo

by Allen Wyatt
(last updated February 19, 2021)

4

It's happened to all of us—you are editing your document, and you delete an object. You then type a bit more, make a few more changes, and then realize that you should not have deleted the object. You take a look at the undo list in Word (by clicking on the down arrow next to the Undo tool above the ribbon), and you see that the delete action you want to undo is buried down five or six layers in the Undo list. If you choose that delete action, then all the changes since that time are also undone. Wouldn't it be great if you could be selective about the "undos" that you want to choose? Wouldn't it be great if you could choose to undo just the delete action and leave everything else alone?

It would be great, but you can't do it in Word. You cannot select a single item from the undo list without also undoing everything since that point. Why is this? Quite simply it is because being selective in undoing actions can cause instability in your document. It is much easier to simply "roll back" the document state to when a particular edit was made than it is to pick and choose which edits to undo.

Let me provide an example. Let's say that you have a text box that includes some text. You delete some text in the middle of the text box, then you type some more text in the box. You then type some text in the regular document, outside the text box. Finally, you decide to simply delete the text box. In this process, at least four actions have been recorded in the undo list: the first text deletion, the typing in the text box, the typing outside the text box, and the deletion of the text box.

If you try to undo just the first item on the undo list (the first text deletion), how should Word behave? The context in which the text existed—the text box—is no longer in the document. The text cannot be restored to a place that no longer exists. Word, to get around the problem, simply "rolls back" the document to just before the first edit. In this case, the document stability is maintained because the text can be restored in the same context from which it was originally deleted.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (10687) applies to Microsoft Word 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Word here: Selective Undo.

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

Using Duplex Printing

Want to print on both sides of a piece of paper? Some printers have the capability to do two-sided printing ...

Discover More

Starting in Safe Mode

By using a command-line switch, Excel can be started in safe mode. This means that the program is loaded with bare-bones ...

Discover More

Detecting an Open Dialog Box

Macros can be used to perform all sorts of tasks within Word. Some tasks can even occur at whatever time interval you ...

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 WordTips (ribbon)

Smart Quote after Em Dash Faces Wrong Direction

When using smart quotes in your typing, Word tries its best to figure out which way the quote you just typed should face. ...

Discover More

Checking for a List of Phrases in a Document

Once you start amassing quite a few documents, it is not uncommon to want to change phrases commonly used in those ...

Discover More

Automatic Non-breaking Spaces in Dates

It drives some people crazy to have a date break across two lines. If you find yourself in this mindset, then you'll ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, 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 three less than 9?

2021-08-09 07:21:03

David in Mississippi

Whay Roy said is absolutely true - in EXCEL. However, if you are in WORD (Isn't this WordTips?), then you don't need to worry about it. It's good to keep this in mind, though, when you use Excel, or any other spreadsheet.


2021-08-08 05:26:27

Roy

In David in Mississippi's comment, one cannot just copy the cell or one will eventually paste what ends up in that cell, not what one wanted.

You need to press F2-Edit and copy the contents that way (highlight contents, press Ctrl-C). The do the Redo's. Now when you paste, it will be the content you copied, not the cell.

(If you copied the cell, Excel remembers that it was the cell you copied and when you go to paste, it takes that, not something from the Clipboard, so it takes the cell and its then current contents which is not the content you did the Undo-Redo process for.

A different way of solving this is to have the expanded Clipboard open. What Excel puts there is the value of the cell you copied. Then once the Redo's are done, click that entry from the expanded Clipboard. This is "less good" than the above though as unless you do the F2-Edit approach, the value the expanded Clipboard will hold will be the VALUE of the formula, not the formula. So... fine for cells holding values ("constants" in Excel-speak) but not for ones holding formulas. Or formatting or Conditional Formatting, and so on. Just for ones holding simple values. The above at least gets the formulas, though it also will not get formats, etc.


2021-02-19 13:05:28

Zvi

To David in Mississippi: Thanks for the brilliant comment


2021-02-19 11:42:08

David in Mississippi

Here's a way AROUND this "can't solve it" problem, at least for deleted items. You're welcome to post this in a future issue.

1. Roll back all the undos until you get to the item you wanted to keep.
2. Highlight that item and copy it. (Ctrl-C)
3. Redo all the items on the REDO list until you get back to where you started. This will also re-delete the item you just copied.
4. Find the place in your document where you want that item to go, then paste it there.

If you find that you cannot paste the item because somehow it fell off your clipboard, then before redoing the redo's, first paste the item into a separate document. After the redo's, you can copy and paste it from that other document.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, 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.