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

Changing the Maximum Undo Levels

by Allen Wyatt
(last updated January 14, 2012)

4

Rob asked if there is a way to change the maximum number of undo levels in Word. The short answer is, no, you can't. The reason is that you don't need to—the only thing that limits the number of undo levels in Word is the amount of resources you have in your computer. This means that the number of undo levels in Word is, for all intents and purposes, unlimited. In fact, you can run a small macro to show that this is the case. Consider this macro:

Sub TestUndo()
    For i = 1 To 10000
        ActiveDocument.Range.InsertAfter i & " "
    Next i
End Sub

It will take a few moments to run the macro, which inserts 10,000 numbers in your document, but when the macro is done, take a look at your undo stack (click on the down-arrow next to the Undo tool on the toolbar). You will notice that you can undo all 10,000 individual steps.

There are things, however, that will clear the undo stack. For instance, protecting a document for forms, executing the UndoClear method in a macro, or closing and reopening a document.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1782) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Changing the Maximum Undo Levels.

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

Returning Word to Default Settings

Want to set everything back to a pristine state in Word? Doing so is more involved than you may believe.

Discover More

Using Classic PivotTable Layout as the Default

Are you attached to the classic PivotTable layout? Looking for a way to make that layout the default for new PivotTables? You ...

Discover More

Turning Off Highlighter Display

You can use the highlighter tool to add all sorts of color to your document. If you want to turn off those colors so that ...

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 (MENU)

Stubborn Thumbnails

One of the tools that Word provides is to display thumbnails of your document pages at the left side of the program window ...

Discover More

Fatal Errors in Word

If Word runs into a problem and the program can't continue, that can be distressing. Here are some things you can check to ...

Discover More

Misbehaving Rulers

When upgrading from Word 2000 to 2002, many people have a problem with the Ruler function. This tip explains how to fix the ...

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 for this tip:

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. 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 3?

2014-03-10 15:35:24

Erik Maher

Thanks for the tips. This is an update for my question several years ago.

I chose to show hidden characters in Word, and what I thought was a paragraph break, because the text string split into three lines and only accepted the last "9" when I tried to paste it into Word's Find dialog box,

9
15-16
9

was actually either a (Tab), a combination of (Space) and (Tab), a combination of (Tab) and (Space), or a (Space), depending on the web browser used to snag the data, and depending on whether or not the markers were tested:

9(tab)15-16(tab)9

or

9(space)(tab)15-16(space)(tab)9

or

9(space)15-16(space)9

or

For untested genetic markers, (tab)(space) for the last untested marker

I found the best solution was:

1. To use one web browser consistently, so the data is always formatted the same way. (Firefox works best for genetic data.) Otherwise, you can search and replace all instances of (space)(tab) and (tab)(space) with (tab) to make the data consistent.

2. To stick with Notepad, which accepts hidden characters in its Find dialog box if you copy a text string containing hidden characters directly from the database and paste it into the Find dialog box. (Word's Find - More - Special can enter in those hidden characters, but using Notepad is easier.)

3. To use a free utility called Agent Ransack to search through dozens of databases at the same time. (Microsoft's built-in search tool also works, but Agent Ransack is much easier and more elegant.)

Cheers.

Erik.


2012-12-20 21:31:11

Cristi

Erik, have you tried using special characters available when finding with Word? Press Ctrl+F to open the "Find" dialog box. In the bottom left corner there is a button that says "More >>". Click on it and the dialog box will reveal several options. At the bottom there are two active buttons: "Format" and "Special". Click on the "Special" button and there you have all sorts of special characters you can search for. Choose "Any character" (or "Any digit" if you only look for digits), then click again and choose "Paragraph mark", then click again and choose "Any character" and so on until you have the sequence you want of characters and paragraph marks. Then you should be able to find the strings you want. But then again, working on such long document will take you forever. Try breaking it down into smaller documents.


2012-12-19 08:52:25

Andrew

Erik,

This sorta thing happens when using excel, split the document up into 1000 page documents and it will be easy to run the find and replace or upgrade your ram.


2012-11-04 19:32:40

Erik

Hello,

I hope this is not too confusing.

I need to do several find-and-replace tasks on a gigantic 16008-page genealogical document. I created this document for data-mining purposes by copying data from a public database into Notepad, and then from there into Word. (The public database does not offer any way to mine data other than to look through the database line by line, which would take me forever-and-a-day to do.) Each time I try to do find-and-replace on my 16008-page Word document, Word struggles for about 20 minutes, and then tells me that the undo feature will be disabled because there is insufficient memory. As a result, a few find-and-replace tasks that should take me a few minutes are taking me an entire day. Is there any way to completely turn off Microsoft Word's undo feature, so that my find-and-replace tasks will complete more quickly?

The reason I need to do this is because, currently, I can't data-mine the 16008-page document for Y-DNA marker patterns, because Word's Find feature doesn't accept a paragraph break in its dialog box. To remedy this, I'm finding every instance where there are two paragraph breaks, and replacing each instance with a hyphen. This will enable me, for example, to search for the genealogical Y-DNA marker pattern 9-15-16-9, which Word's Find feature accepts, rather than trying to search for

9
15
16
9

which Word's Find feature does not accept. The second sequence cannot be pasted into Word's Find dialog box; when you try to do so, only the last 9 appears in the dialog box.

If it is impossible to turn off Word's undo feature, is there another solution to my dilemma; i.e., is there a way to find a string of text that includes paragraph breaks within the string?

Thank you!

- Erik.


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon 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.

Links and Sharing