* Cough, cough! *




VB Code:
  1. Private Sub CompareDocument()
  2.     oDoc.Compare Name:="C:\MyDocument.doc", CompareTarget:=wdCompareTargetNew
  3. End Sub
This will compare the current document (opened and set to oDoc) with the file document (MyDocument.doc) and write the differences into a new document. The differences will be displayed as revision marks that indicate the differences.