Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

creating a single action in the undo buffer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Inbar - 22 Feb 2005 22:19 GMT
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?
Jay Freedman - 23 Feb 2005 03:12 GMT
>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/groups?selm=387f8417.9282415%40news.xs4all.nl

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.

--
Regards,
Jay Freedman
Microsoft Word MVP         FAQ: http://word.mvps.org
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.