traverse a word document

V

vishal

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

Helmut Weber

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top