generating header from table of contents

Posted on 2008-11-16
Last Modified: 2012-05-05
is it possible in word 2003 to get the page header to automatically display the relevant section heading from the table of contents. lets say you have the following toc

1. word
  1.1 creating toc
   1.2 columns

2. excel
   2.1 formulae

the page showing section 1.2 columns would have the 'chapter' title 'word' in the header

Question by:andieje
    LVL 76

    Expert Comment

    You could bookmark the heading text in the TOC, but the bookmark wouldn't survive rebuilding the TOC.

    The simplest way would be to bookmark the heading directly and to put a REF field pointing to it on the header.
    LVL 76

    Expert Comment

    Another thing to remember is that a Header is intended to carry over between pages. To be certain that the page has a new Header you would need to use a seperate Section for it.
    LVL 21

    Accepted Solution

    The STYLEREF field is designed to do this. If the style used for "1. word" and "3. excel" was, say, "Heading 1", you could use a field like { STYLEREF "Heading 1" } to have it display the current Heading 1 style in a page header.

    If you use this method, you wouldn't need to have a new section.

    Author Comment

    given the information in eric's answer i found this document

    i shall investigate this further

    Author Closing Comment

    many thanks

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
    This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
    This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
    The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now