Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2023, 11:18 AM
jqavins jqavins is offline Can a TOC Be Generated From Headings in a Different Document? Windows XP Can a TOC Be Generated From Headings in a Different Document? Office 2003
Novice
Can a TOC Be Generated From Headings in a Different Document?
 
Join Date: Jan 2014
Posts: 6
jqavins is on a distinguished road
Default Can a TOC Be Generated From Headings in a Different Document?

I'm stuck now (it's too late to do this better) manually updating a table of contents, because someone before me did not use the tools Word offers. The document is one volume of a technical manual with multilevel section numbering, and whoever created it originally did not use automatic numbering. So when I had to add a section, I needed to manually renumber all of the following sections at the same level. Which is 100% stupid, and I'm stuck with it.



They also put the table of contents for this in a separate file. That's not as stupid as it sounds, as this other file has a bunch of standard front matter, and that's the system in use for each volume: there's the file for front matter, the file for the body, and two more files for trailing matter and customer submission stuff.

Naturally, after a bunch of section numbers and nearly all of the page numbers changed, I have to manually update the table of contents. Argh!

OK, so here's the question. Hypothetically, if the body had been done correctly, would it have been possible to automatically generate the body's TOC from within the front matter file?
Reply With Quote
  #2  
Old 09-29-2023, 03:26 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Can a TOC Be Generated From Headings in a Different Document? Windows 11 Can a TOC Be Generated From Headings in a Different Document? Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,902
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

In the document that contains the table of contents, you can insert RD fields that reference each of the separate documents from which Word should fetch the headings.
See Field codes: RD (Referenced Document) field - Microsoft Support.

A simpler way is to reference the separate documents with INCLUDETEXT fields, though. You can use the Insert File dialog box and especially the Insert as Link option.
Attached Images
File Type: jpg InsertAndRefSeparateDocs.jpg (142.4 KB, 5 views)
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
export UserForm created strings to generated Document from template Trainee Word VBA 2 09-13-2017 02:29 AM
Can a TOC Be Generated From Headings in a Different Document? Words undeletable line randomly generated after launch of document kesyyk Word 1 02-14-2017 06:46 PM
Can a TOC Be Generated From Headings in a Different Document? Concordance of Topics to be generated for a 2000000+ word document. MJSTOCKY Word 1 09-08-2014 12:25 AM
Can a TOC Be Generated From Headings in a Different Document? How to save a macro in a document generated with a word model? Cristin7 Word VBA 4 03-25-2014 03:25 AM
Can a TOC Be Generated From Headings in a Different Document? How can I excerpt just the headings of my document? peytontodd Word 8 01-30-2014 10:16 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft