Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
If I want to compare 2 word docs and highlight the differences between them I use: Sub IsDocument_Equal() Dim oDoc1 As Word.Document Dim oResDoc As Word.Document ' Delete the tables from both the document ' Delete the images from both the document ' Replace Paragraphs etc Set oDoc1 = ActiveDocument ' comparing Document 1 with New 1.doc oDoc1.Compare Name:="C:\New 1.doc", CompareTarget:=wdCompareTargetNew, DetectFormatChanges:=True 'This will be the result document Set oResDoc = ActiveDocument If oResDoc.Revisions.Count < 0 Then 'Some changes are done MsgBox "There are Changes " Else MsgBox "No Changes" End If End Sub Is there a methos I can use to compare / identify the changes bewteen 2 different excel workbooks? TIA Chris |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jim Cone has a nifty commercial Add-in that I use to compare workbooks. It's
called XLCompanion, and is available at http://www.realezsites.com/bus/primitivesoftware/ Vaya con Dios, Chuck, CABGx3 "Chris" wrote: Hi all, If I want to compare 2 word docs and highlight the differences between them I use: Sub IsDocument_Equal() Dim oDoc1 As Word.Document Dim oResDoc As Word.Document ' Delete the tables from both the document ' Delete the images from both the document ' Replace Paragraphs etc Set oDoc1 = ActiveDocument ' comparing Document 1 with New 1.doc oDoc1.Compare Name:="C:\New 1.doc", CompareTarget:=wdCompareTargetNew, DetectFormatChanges:=True 'This will be the result document Set oResDoc = ActiveDocument If oResDoc.Revisions.Count < 0 Then 'Some changes are done MsgBox "There are Changes " Else MsgBox "No Changes" End If End Sub Is there a methos I can use to compare / identify the changes bewteen 2 different excel workbooks? TIA Chris |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula to work in a 3-d reference with 2 work books | Excel Worksheet Functions | |||
need a function that will work using multiple work books and sheet | Excel Worksheet Functions | |||
Update all the work books | Excel Programming | |||
Counting dates in multiple work sheets and work books | Excel Discussion (Misc queries) | |||
Work books | Excel Worksheet Functions |