Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

traverse a word document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vishal - 03 Dec 2004 07:19 GMT
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.
Helmut Weber - 03 Dec 2004 09:15 GMT
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

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.