Subdocuments Filenames to be include in TOC page numbers - Word 20

S

Storm

I'm Creating a Large Document with almost 400 subdocuments, each about 15
pages. I need to place the subdocuments Filename in the TOC ie:

WP0001-1
WP0001-2
WP0002-1
..
..ect

Additionally it needs to place in the Master Documents Page Number

I tried the field Code "{ FILENAME } - { PAGE }" but only it provides the
master docs filename.

Thanks in Advance

Storm
 
M

macropod

Hi Storm,

First off, if you're using Word's 'Master Document' feature, be warned: all the documents are at risk of corruption. See:
http://word.mvps.org/faqs/general/RecoverMasterDocs.htm
There are other ways of achieving what Word's 'Master Document' feature is supposed to provide, without that risk. Primarily, this
involves the use of a 'target' document that uses INCLUDETEXT and/or RD fields to link to each of the 'source' documents.

As for including the filename of each of the 'source' documents in the TOC, that can only be done if the filename fields in the the
'source' documents are in a suitable Heading Style or another Style included in your TOC field coding. Plus, the filename will be
reproduced with the '.doc' extension.
 
S

Storm

I guess there is no way to remove the ext from the filename except if I write
a macro?

Storm

macropod said:
Hi Storm,

First off, if you're using Word's 'Master Document' feature, be warned: all the documents are at risk of corruption. See:
http://word.mvps.org/faqs/general/RecoverMasterDocs.htm
There are other ways of achieving what Word's 'Master Document' feature is supposed to provide, without that risk. Primarily, this
involves the use of a 'target' document that uses INCLUDETEXT and/or RD fields to link to each of the 'source' documents.

As for including the filename of each of the 'source' documents in the TOC, that can only be done if the filename fields in the the
'source' documents are in a suitable Heading Style or another Style included in your TOC field coding. Plus, the filename will be
reproduced with the '.doc' extension.

--
Cheers
macropod
[MVP - Microsoft Word]


Storm said:
I'm Creating a Large Document with almost 400 subdocuments, each about 15
pages. I need to place the subdocuments Filename in the TOC ie:

WP0001-1
WP0001-2
WP0002-1
.
.ect

Additionally it needs to place in the Master Documents Page Number

I tried the field Code "{ FILENAME } - { PAGE }" but only it provides the
master docs filename.

Thanks in Advance

Storm
 
M

macropod

Hi Storm,

You can't really remove the '.doc' extension from the field - if you try, it'll return next time the field is refreshed (eg via
Print Preview or printing the document). And, if you're going to use a macro, you may as well incorporate it into the underlying
template and have it update a 'filename' bookmark.

--
Cheers
macropod
[MVP - Microsoft Word]


Storm said:
I guess there is no way to remove the ext from the filename except if I write
a macro?

Storm

macropod said:
Hi Storm,

First off, if you're using Word's 'Master Document' feature, be warned: all the documents are at risk of corruption. See:
http://word.mvps.org/faqs/general/RecoverMasterDocs.htm
There are other ways of achieving what Word's 'Master Document' feature is supposed to provide, without that risk. Primarily,
this
involves the use of a 'target' document that uses INCLUDETEXT and/or RD fields to link to each of the 'source' documents.

As for including the filename of each of the 'source' documents in the TOC, that can only be done if the filename fields in the
the
'source' documents are in a suitable Heading Style or another Style included in your TOC field coding. Plus, the filename will be
reproduced with the '.doc' extension.

--
Cheers
macropod
[MVP - Microsoft Word]


Storm said:
I'm Creating a Large Document with almost 400 subdocuments, each about 15
pages. I need to place the subdocuments Filename in the TOC ie:

WP0001-1
WP0001-2
WP0002-1
.
.ect

Additionally it needs to place in the Master Documents Page Number

I tried the field Code "{ FILENAME } - { PAGE }" but only it provides the
master docs filename.

Thanks in Advance

Storm
 

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