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 / Conversions / April 2005

Tip: Looking for answers? Try searching our database.

automating TOC based upon styles

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
according_to_dale - 20 Apr 2005 01:05 GMT
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.
 
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.