Undo Buffer

V

venkata

I have to highlight the changes made to the document
through the undo operation. I did override the EditUndo
method. I am not able to get hold of the text or range
that is effected by the undo operation. Is there any way
to find the range, which was effected because of the undo
operation.
 
J

Jonathan West

it is possible, but rather slow & messy. You proceed as follows

1. Save the document
2. Do the Undo operation
3. Save the document under a new name
4. Compare with the previously saved version of the document using Tools,
Track Changes

If you record a macro while doing that process by hand, you will then be
able to adapt the code as necessary.
 
K

Klaus Linke

it is possible, but rather slow & messy.

Too bad that protecting the document seems to clear the Undo buffer.

Else, you could just turn on
ActiveDocument.Protect _
Type:=wdAllowOnlyRevisions
and undo the last edit.

:-( Klaus
 

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