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 / November 2004

Tip: Looking for answers? Try searching our database.

Tracked changes and outline levels

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
acj - 10 Nov 2004 22:53 GMT
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'."
Helmut Weber - 11 Nov 2004 01:25 GMT
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
[quoted text clipped - 4 lines]
>write the following: "In paragraph 3.1, replace 'contract' with 'purchase
>order'."

g
 
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.