Word 2003 VBA Document changes
-
Monday, April 16, 2012 10:24 AM
I want to create a list or table of all the insertions, deletions and comments that have been made to my Word 2003 document. All changes and comments have been tracked. How can I do this with VBA? I can see how to detect comments with ActiveDocument.comments but there is no such property for insertions or deletions.
- Edited by sluice Monday, April 16, 2012 10:25 AM
- Moved by Bill_StewartMicrosoft Community Contributor Monday, April 16, 2012 1:40 PM Move to more appropriate forum (From:The Official Scripting Guys Forum!)
- Moved by Bruce SongModerator Monday, April 23, 2012 6:13 AM request for vba code (From:Word for Developers)
All Replies
-
Monday, April 16, 2012 10:45 AMWrong forum. Moderators, please move?
Grant Ward, a.k.a. Bigteddy
-
Monday, April 23, 2012 6:02 PMPlease advise which is the correct forum, if not Visual Basic for Applications?
-
Friday, April 27, 2012 6:10 AMModerator
You may look into this thread:
http://vbadud.blogspot.com/2012/01/how-to-extract-comment-information-from.html
Sub Get_Comment_Information() Dim oComment As Comment Dim oCommentRange As Range For i1 = 1 To ActiveDocument.Comments.Count Set oComment = ActiveDocument.Comments(i1) Set oCommentRange = oComment.Scope.Paragraphs(1).Range Debug.Print "Page : " & oCommentRange.Information(wdActiveEndPageNumber) & vbTab _ & "Line : " & oCommentRange.Information(wdFirstCharacterLineNumber) & vbTab Next i1 End SubHope this helps,
Daniel van den Berg | Washington, USA | "Anticipate the difficult by managing the easy"
Please vote an answer helpful if they helped. Please mark an answer(s) as an answer when your question is being answered.

