Re: Convert a directory of Word files to a TOC

Subject: Re: Convert a directory of Word files to a TOC
From: "Jonathan West" <jwest -at- mvps -dot- org>
To: techwr-l -at- lists -dot- techwr-l -dot- com
Date: Fri, 17 Oct 2008 11:00:54 +0100

>
> That means something programmically has to start at the top of the
> directory, write the file name ot a TOC Word doc, open the doc, write
> the H1 to the TOC Word doc, close, go to the next file, write the
> filename to the TOC doc, open and write the H1 title to the TOC doc,
> etc.
>

A starting point is this article

Find & ReplaceAll on a batch of documents in the same folder
http://www.word.mvps.org/FAQs/MacrosVBA/BatchFR.htm

This article shows you how to process all the files in a folder. The
code in the middle of the loop that does the find/replace would have
to be replaced by code that gets the file name and H1 title and puts
it into your report document.

Regards
Jonathan West
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ComponentOne Doc-To-Help gives you everything you need to author and
publish quality Help, Web, and print content. Perfect for technical
authors, developers, and policy writers. Download a FREE trial.
http://www.componentone.com/DocToHelp/

True single source, conditional content, PDF export, modular help.
Help & Manual is the most powerful authoring tool for technical
documentation. Boost your productivity! http://www.helpandmanual.com

---
You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/archive%40web.techwr-l.com


To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/ for more resources and info.

Please move off-topic discussions to the Chat list, at:
http://lists.techwr-l.com/mailman/listinfo/techwr-l-chat


References:
Convert a directory of Word files to a TOC: From: John Posada

Previous by Author: Re: Alternative to floppy
Next by Author: Re: The case against M$ Word
Previous by Thread: Re: Convert a directory of Word files to a TOC
Next by Thread: Re: FW: Convert a directory of Word files to a TOC


What this post helpful? Share it with friends and colleagues:


Sponsored Ads