set number of times for undo or redo

S

Suzanne S. Barnhill

You can't. The number of Redos is limited by the number of actions since the
last Undo (sort of); the number of Undos is limited only by available HD
space.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
J

Jezebel

You can clear the list of undo/redo actions through VBA:

ActiveDocument.UndoClear

But that's the only control there is over the undo mechanism.
 
A

Alex

Hi Suzanne

Quick question, you can change the number of undo levels
in Excel by changing the registry, won't a similar trick
work for Word as well.

regards
Alex
 
D

Doug Robbins - Word MVP

You can use

ActiveDocument.UndoClear

in a macro to clear the Undo stack.

and

ActiveDocument.Undo(n)

to under the last n changes to the document.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
D

Dayo Mitchell

Doug Robbins - Word MVP said:
You can use

ActiveDocument.UndoClear

in a macro to clear the Undo stack.

and

ActiveDocument.Undo(n)

to under the last n changes to the document.

So, Doug, if I did about 20 different edits, and then realized I wanted to
keep most of them, but not the third edit I did, are you saying I could
clear 17 undo changes, then undo edit number 3, and have the doc I wanted?

Dayo
 
J

Jezebel

No. It's a simple stack. Undo(17) is equivalent to clicking Undo 17 times.
UndoClear simply throws away the entire list of undo instructions.
 
D

Dayo Mitchell

Oh, bummer, thought I had learned a new trick. Didn't read carefully
enough.

Thanks much,
Dayo
 
S

Suzanne S. Barnhill

It's a common trap. When Word first introduced the Undo list, a frequently
seen "insider tip" (Word Processing Tips editor George Campbell published
this one in PCWorld, and I called him on it) was that you could display the
list, select the specific action you wanted to Undo, and click on it.
Unfortunately, this was never true: Word just undoes back to the action you
click on.
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top