Tracked changes and outline levels

A

acj

In code, how do I read a tracked change in Word and know the outline level?
I want the code to find a tracked change, read it, record the outline
number/level, and write a summary of the change.

For example, if paragraph 3.1 of a document had a tracked change that showed
the word "contract" was replaced with "purchase order", I want the code to
write the following: "In paragraph 3.1, replace 'contract' with 'purchase
order'."
 
H

Helmut Weber

Hi,
maybe close to impossible, or still worse.
If you overtype something by something else, you get 2 revisions.
Revision 1 of those 2 would be of type wdRevisionDelete (2).
Revision 2 of those 2 would be of type wdRevisionInsert (1).
But I can't think of a way, to group revisions together.
An insertion in paragraph 1 would be revision x.
A following deletion in paragraph 123 would be revision x+1.
Could be I am wrong, but there seems to be no information
on what was overwritten by what. Apart from revisions of type
wdRevisionReplace, which doesn't make it much easier.
So what remains is almost meaningless. By the way, you don't need
outlinelevel or number, you may get the liststring of the paragraph,
which contains the revision 1 by:
MsgBox ActiveDocument.Revisions(1).Range.ListFormat.ListString
Returns "", in case it isn't an according paragraph.
To the best of my knowledge,
if anyone knows better, welcome.
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/





In code, how do I read a tracked change in Word and know the outline level?
I want the code to find a tracked change, read it, record the outline
number/level, and write a summary of the change.

For example, if paragraph 3.1 of a document had a tracked change that showed
the word "contract" was replaced with "purchase order", I want the code to
write the following: "In paragraph 3.1, replace 'contract' with 'purchase
order'."

g
 

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