Table of Contents across documents

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using:
Windows 2000
Word 2000

I have a very large manual that I want to create a TOC for. The problem is that there is a seperate document for each section of the manual. Is it possible to create yet another seperate document with a TOC that applies to all of the documents in the manual? I would do it myself, but it really is a large manual, so I would have to go through each section, locate all the headings by hand, calculate how many pages each section is (as the auto-text page numbers apply to their own section only, not the overall manual) and it is likely to change a bit in the near future and I don't want to have to go through correcting the TOC. Thanks a lot for any help.
 
Yes, look up RD codes in Word help. I find they work best if you put all
the files in the same folder and use the filename only in the RD codes, so
that if you need to move or copy the RD codes still work. Note that in
order for it to work that way, Word's active directory has to be the folder
in which the documents are stored. If you open the document from within
Word, this is handled automatically, but if you open from Windows Explorer,
etc. or subsequently open a document in a different directory, you can use
this macro to set the active directory before updating the TOCs.

'SetWorkingDirectory
'This macro changes the working directory in Word's memory to
'that of the ActiveDocument. This helps operations succeed that
'involve linked figures or RD fields.
Sub SetWorkingDirectory()
dir0$ = CurDir$
On Error GoTo ErrorHandler
ChDrive ActiveDocument.Path
ChDir ActiveDocument.Path
MsgBox "Working directory changed from " + vbCrLf + dir0$ + " to " +
vbCrLf + CurDir$
Exit Sub
ErrorHandler:
MsgBox "Current directory not changed"
End Sub

Regards,
cjd


J Brydle said:
Using:
Windows 2000
Word 2000

I have a very large manual that I want to create a TOC for. The problem is
that there is a seperate document for each section of the manual. Is it
possible to create yet another seperate document with a TOC that applies to
all of the documents in the manual? I would do it myself, but it really is a
large manual, so I would have to go through each section, locate all the
headings by hand, calculate how many pages each section is (as the auto-text
page numbers apply to their own section only, not the overall manual) and it
is likely to change a bit in the near future and I don't want to have to go
through correcting the TOC. Thanks a lot for any help.
 
{ RD "C:\\Manual\\Chapters\\Chapter1.doc" }

You need to surround the path and filename with quotation marks.

cjd


J Brydle said:
Thanks, this definately looks promising, but I'm still having some
problems. I put the fields in as in the example in the help file:
{ TOC }
{ RD C:\\Manual\\Chapters\\Chapter1.doc }
{ RD C:\\Manual\\Chapters\\Chapter2.doc }
{ RD C:\\Manual\\Chapters\\Chapter3.doc }
but when I right click on the TOC field and say update field, i get errors
that say the the path is not valid. I'm new at using fields, am I doing
something wrong? If anyone could give some instructions a little more clear
than the help file, I'd appreciate it. Thanks.
 
The \f switch for RD fields allegedly specifies that the file name is
relative to the location of the TOC-and-RD DOC file directory instead
of relative to the active directory. This switch was not present in
Word 97 or earlier. It is not in Word 2002 help files. I wonder
whether it works.

Bob S
 
Back
Top