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


All Replies

  • Monday, April 16, 2012 10:45 AM
     
     
    Wrong forum.  Moderators, please move?

    Grant Ward, a.k.a. Bigteddy

    What's new in Powershell 3.0 (Technet Wiki)

  • Monday, April 23, 2012 6:02 PM
     
     
    Please advise which is the correct forum, if not Visual Basic for Applications?
  • Friday, April 27, 2012 6:10 AM
    Moderator
     
      Has Code

    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 Sub
    

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