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 / June 2007

Tip: Looking for answers? Try searching our database.

Folder Tree in Word Document - directory.docx (0/1)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Costa Zu - 06 Jun 2007 02:03 GMT
Hello,

Is there a macro, or someone who can help write a macro to do the
following:

I have attached a sample docx file to demonstrate what I am trying to
do which is this:

Problem: I want a directory tree inside a Word document so that I can
create PDF files to go on my CD's.  At the moment I am starting to do
it all manually and it is driving me crazy.  I am not a programmer but
have dabbled with basic and visual basic.  I am sure there is a way to
do what I want to do, which is create a directory tree inside Word for
around 300 CDs containing images.

The master CDs are kept on a file server with folder names \CD01 \CD02
\CD03 ... etc.

There are several levels of subfolder under each master folder such as
\CD01\Australia\gallery01, \CD02\Brazil\gallery01,
\CD123\Galaxy\gallery37

The last branch is always "gallery".  Then there is a number of files
in each gallery which will have the same prefix in their filename, eg:
braz01a001.jpg, braz01a002.jpg, braz01a003, etc.  in this example
"braz01a" is the common prefix and can be established by comparing the
filename of the first two files in the folder.

Opening the directory.docx that I have added here will help you
understand the kind of thing that I am trying to achieve.  Any help
would be GREATLY appreciated.

Kind regards,

Costa
Russ - 18 Jun 2007 05:15 GMT
In a DOS window or batch command you could use to dir command with its
various options to send the info to a text file which you could then open in
Word to format.

http://www.computerhope.com/dirhlp.htm
http://vlaurie.com/computers2/Articles/environment.htm

Dir whateverpathtoserver\CD01 > %USERPROFILE%\Desktop\tree.txt
Dir whateverpathtoserver\CD02 >> %USERPROFILE%\Desktop\tree.txt
...

> Hello,
>
[quoted text clipped - 31 lines]
>
> Costa

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID

 
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.