Controlling UNDO in Word

B

Bill

Hi,

I am using Word automation from C++. I am modifying a document while an
interactive user may also be making changes. I would like to avoid having
my changes go into the user's undo list, so that undo continues to behave in
a rational way for the user. Does anyone know if I can control the Undo
stack in automation.

Bill
 
P

Peter Huang [MSFT]

Hi Bill,

Thanks for your input.
Office Automation is based on the Object Modal[1], but I have browsed
through all the objects in the Word OM, we did not expose such an apporach
to manipulate the Undo List, we have UndoClear Method to clear all the undo
list, which is for your reference.

[1] We can find the Office Object Modal in the VBA Helper in the path below.
e.g. Word Object Modal
c:\Program Files\Microsoft Office\OFFICE11\1033\VBAWD10.CHM



Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
B

Bill

Hi Peter,

Thank-you for trying. Maybe my best solution is to clear Undo. It's
probably better to have undo not work than do something unpredictable.

Cheers
Bill
 

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