creating a single action in the undo buffer

I

Inbar

I have a Word add-in that manipulate the document.
My problem is that every single manipulation gets to into the undo buffer as
a seperate action. I would like to combine these into one undo action so that
when the user clicks "undo" they undo all of what my add-in has done.
Can this be done in Word 2003?
 
J

Jay Freedman

I have a Word add-in that manipulate the document.
My problem is that every single manipulation gets to into the undo buffer as
a seperate action. I would like to combine these into one undo action so that
when the user clicks "undo" they undo all of what my add-in has done.
Can this be done in Word 2003?

Yes, you can adapt the method described at
http://groups.google.com/[email protected]

The general idea is to create a bookmark in the document at the
beginning of the group of actions. If the user chooses to undo, your
code works its way through the undo buffer until the bookmark no
longer exists. There's a bit more to it, but you should be able to
adapt the code to your add-in.
 

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