Clear Undo stack to a particular step

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I type a simple 4-letter word in MS-Word. Then, I run a macro which
performs 1000 steps. The undo stack records the 4 characters + 1000 steps.
Is there a way in MS-Word that I can ask it to undo the 1000 steps and get
back to the end of the 4-letter word?

There is an article which explains as to how to clear the complete undo
stack, but I would like to clear the stack to a certain step only. Is there
a way to do that?
 
I believe it's possible, but you would need to use VBA. Ask in a group with
Programming or VBA in the name for a faster response.

Alternatively--tell the macro to save the doc before the 1000 steps, then to
close without saving after the 1000 steps.

Alternatively, tell the macro to clear the undo list before the 1000 steps,
then to clear it again.
 
I type a simple 4-letter word in MS-Word. Then, I run a macro which
performs 1000 steps. The undo stack records the 4 characters + 1000 steps.
Is there a way in MS-Word that I can ask it to undo the 1000 steps and get
back to the end of the 4-letter word?

There is an article which explains as to how to clear the complete undo
stack, but I would like to clear the stack to a certain step only. Is there
a way to do that?

A few years ago a gentleman named Roemer Lievaart posted an ingenious
method of using a bookmark to track how many Undo actions are needed
to remove the effect of a macro. See if his technique helps:


http://groups-beta.google.com/group/microsoft.public.word.word97vba/msg/c5f120a7817f3dbb?hl=en
 
Back
Top