I have a master Word doc which through some code inserts several
sub-doucuments.
Once all the sub documents have been inserted into the master
document, some further code creates a table of contents (TOC) based
upon some pre-defined styles in the sub-documents.
My problem is this, when the sub-documents are inserted into the
master, the styles that the TOC is based upon are being renamed in
each of the sub-docs after the first sub-doc is inserted.
So, essentially, I have styles, say A, B and C in each of the sub
docs. When the sub-docs are inserted in the master, the styles remain
A, B and C for the first sub doc, but for each doc after that they are
renamed to A1, B1, C1, then A2, B2, C2 and so on.
This, of course screws up the TOC b/c it's just looking for A, B and
C.
Any thots on this? Either prevent the styles from renamed or a fix to
include all the renamed styles in the TOC?
Any help would be appreciated.
rderize - 30 Apr 2005 19:58 GMT
Hi:
If you're using the Master Document feature, be sure to read about the very
serious problems this feature can create:
http://word.mvps.org/FAQs/General/RecoverMasterDocs.htm
It's possible that what you're experiencing is the "Master Document"
corruption.
Good Luck
Richard
> I have a master Word doc which through some code inserts several
> sub-doucuments.
[quoted text clipped - 19 lines]
>
> Any help would be appreciated.