View Single Post
  #12   Report Post  
Posted to microsoft.public.word.docmanagement
Jezebel Jezebel is offline
external usenet poster
 
Posts: 1,384
Default Text in Word 2003 Header won't show in TOC - how do I fix this

You are not going to be able to create workable documents putting headings
in headers! God knows where you got this idea from, but it is just mistaken.
Look at any of the Word tutorials anywhere, download some Word documents
from anywhere, or go to your local bookshop and look at any of the guides.


"DMF2006" wrote in message
...
thank you - I shall try to understand the use of styleref so that it will
work - unfortunately, these are landscape Word documents with tables in so
we
need the Headers to use for the Headings to repeat on each page and the
people who will be creating and editing the documents have no idea how to
use
field codes etc so I have to then also make it user friendly. I am
struggling to understand why header text isn't included within the TOC
entries, given that, particularly in landscape documents, you wouldn't put
repeating headings anywhere else but then I guess that's one for
Microsoft.

"Suzanne S. Barnhill" wrote:

This is why you use the StyleRef field; see
http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm. It sounds as if you're
already having to insert section breaks (to make the headers different),
so
in this instance, enable "Different first page" (Layout tab of Page
Setup),
then leave the heading out of the First Page Header and use a StyleRef
field
in the Header. You will then be able to leave your Headers linked, and
they
will change automatically in each section.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup
so
all may benefit.

"DMF2006" wrote in message
...
thank you Stefan - guess I'll have to work around it somehow - will try

your
suggestions.

The page number would be the page number of the first page in that

section,
as each section has its own header deliberately to ensure that text
that
rolls over more than one page maintains the same heading.

"Stefan Blom" wrote:

There is no way to include text in headers (or footers) in a table of
contents. Even if it was possible, what page number should be
assigned
to it, given the fact that a header is usually displayed on multiple
pages?

To solve this problem, you have two options:

1. Leave your headings in the header and then add TC fields to the
body of your document and build your TOC on those fields.

Or:

2. Move the headings into the main body of the document. If you want
the current heading to be displayed in the header, insert a STYLEREF
field in the header.

--
Stefan Blom
Microsoft Word MVP


"DMF2006" wrote in message
...
I need to use the text in the Headers in Word to generate my TOC -
so far the
automated system is not picking up the text in the Header and none
of the
commands to mark the text work within the Header. How do I get
around this,
as all our Word documents contain the headings within the Header!
thanks for
any help/suggestions!