I have to write a custom diff utility for microsoft word. Any idea on
how i can traverse a word document for the same. I know how to do it
word by word, but what about figures, headers, footers etc.
For the utility to work, i need to do it object by object in the order
they appear in document.
Hi,
for processing all of a doc, see:
http://word.mvps.org/FAQs/Customization/ReplaceAnywhere.htm
For
>object by object in the order they appear in document.
hm...
can't think of anything in a word document,
that isn't an object.
Or are you searching for something like
ActiveDocument.Compare _
Name:="C:\Test\test-01.doc", _
CompareTarget:=wdMergeTargetNew, _
DetectFormatChanges:=True, _
IgnoreAllComparisonWarnings:=False, _
AddToRecentFiles:=False
End Sub
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000