Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Feb 2012
    Location
    St. Louis, MO
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Exclamation MS Word Table of Contents and RD field

    Hello Everyone,

    I currently have a TOC in Word that pulls in the information from three different files. My TOC looks like this:

    {TOC \O "1-3" \H \Z \U}

    {RD "C:\\Documents and Settings\\rvasquez\\Desktop\\Files\\Employee Requests\\Tony T\\Safety Section.docx"}

    {RD "C:\\Documents and Settings\\rvasquez\\Desktop\\Files\\Employee Requests\\Tony T\\Manual Health Section.docx"}

    {RD "C:\\Documents and Settings\\rvasquez\\Desktop\\Files\\Employee Requests\\Tony T\\Section.docx"}

    I would like to add text before each TOC so that it has the file title before each one. I tried the following code:

    INTRODUCTION

    SECTION I - ADMIN
    {TOC \O "1-3" \H \Z \U}

    {RD "C:\\Documents and Settings\\rvasquez\\Desktop\\Files\\Employee Requests\\Tony T\\Safety Section.docx"}

    SECTION II - HEALTH
    {RD "C:\\Documents and Settings\\rvasquez\\Desktop\\Files\\Employee Requests\\Tony T\\Manual Health Section.docx"}

    SECTION II -SAFETY
    {RD "C:\\Documents and Settings\\rvasquez\\Desktop\\Files\\Employee Requests\\Tony T\\Section.docx"}

    But the only titles that show up are the Introduction and Section I Administration lines.

    Does anyone know how to add text in between each TOC?

    Thanks!

  2. #2
    WS Lounge VIP
    Join Date
    Mar 2006
    Location
    Maryland, USA
    Posts
    690
    Thanks
    17
    Thanked 66 Times in 56 Posts
    The addditional text stops the TOC. You'll need to repeat the TOC field codeafter each interruption (I mean, you'll have to have separate TOCs after each Section head). Better, you can include the main headings in the heading scheme.

    Pam

  3. #3
    New Lounger
    Join Date
    Feb 2012
    Location
    St. Louis, MO
    Posts
    21
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Pam,

    Thank you for your answer. If I'm reading your response correctly your stating to do the following?


    INTRODUCTION

    SECTION I - ADMIN
    {TOC \O "1-3" \H \Z \U}
    {RD "C:\\Documents and Settings\\rvasquez\\Desktop\\Files\\Employee Requests\\Tony T\\Safety Section.docx"}

    SECTION II - HEALTH
    {TOC \O "1-3" \H \Z \U}
    {RD "C:\\Documents and Settings\\rvasquez\\Desktop\\Files\\Employee Requests\\Tony T\\Manual Health Section.docx"}

    SECTION II -SAFETY
    {TOC \O "1-3" \H \Z \U}
    {RD "C:\\Documents and Settings\\rvasquez\\Desktop\\Files\\Employee Requests\\Tony T\\Section.docx"}

    If this was your suggestion I already tried this and it works in the aspect that it puts in the string of the Text I would like to seperate each TOC but it fails in the aspect that it includes all three TOC's everytime under each section.

    If this is not what you were suggesting could you please provide me an example of a code I could use?

    Thanks again!
    Last edited by RVASQUEZ; 2012-02-20 at 15:45.

  4. #4
    WS Lounge VIP
    Join Date
    Mar 2006
    Location
    Maryland, USA
    Posts
    690
    Thanks
    17
    Thanked 66 Times in 56 Posts
    Sorry, that's what I (thought I) remembered doing a few years ago. There's another way to get the titles in without manual typing. If the titles appear in the text and have a unique style, you can switch to a heading-based TOC (instead of paragraph outline level). It would look like this:

    {TOC \h \z \t "title,1, Headings 1,2, Heading 2,3, Heading 3,4"}

    followed by the RD codes.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •