none
ActiveDocument.Compare function

    Question

  • I'm not familiar with the 'compare' function in word 2010.  Have created a macro to 'unlock read-only form' (compare not available with cursor in editable area and form locked)... then I want to activate the Compare feature for the user.  Have

    Sub CompareDocs()

    If ActiveDocument.ProtectionType <> wdNoProtection Then
        ActiveDocument.Unprotect Password:="password"
           MsgBox "Compare Documents"
           ActiveDocument.Compare Name:=<Previous Version>  (Here unfortunately, I'm clueless)
    Else
        MsgBox "Ready to Compare Documents"
    End If

    End Sub

    Getting error messages and don't know at this point what needs to be changed/added...

    Can someone explain how 'compare' needs to be written?  Also - once Compare has been initiated and the the user finishes the process.  Is the starting document exited.  Does the user need to save the document prior to comparing?  Obviously - there's a lot to learn!

    Regards - Lenny33

    Friday, August 02, 2013 5:02 PM

Answers