View Single Post
  #10  
Old November 9th, 2006, 04:52 PM posted to microsoft.public.word.newusers
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Field codes for headers

Note that another approach, if you have text on two lines (in two separate
paragraphs, with two different styles) is just to use two StyleRef fields,
one for each style. In your case, however, if "Section 1" is autonumbering,
you will have to have two StyleRef fields, anyway, one to pick up the
heading number and one to pick up the heading text.

--
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.

"Island Girl" wrote in message
news
Thanks, Suzanne. I'll head straight to your StyleRef section.

"Suzanne S. Barnhill" wrote:

Note, however, that if a heading includes a line break, this will be

picked
up by the StyleRef field. For some workarounds, see
http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm

--
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.

wrote in message
...
You'd need to make both 'Section 1' and 'Executive Summary' the

Heading 1
Style and in the same Paragraph. Even if the words 'Executive Summary'

are
on the next line, use a Line Break rather than a paragraph break to

move
it
to the next line. Then the StyleRef will pick up the whole of the

Heading.

Terry

"Island Girl" wrote in message
...
Hi, Terry:

Thanks so much for your wonderful help as usual. I had no idea that

I
didn't need section breaks.

I don't want to wear out my welcome, Terry, but just one more thing:

Is
there any way that I can include the words following the heading.

For
Example in "Section 1. Executive Summary" could the "Executive

Summary"
somehow be included?

If not, with your instructions, I'm still way ahead of the game.

Thanks again!



" wrote:

You need to use the StyleRef field referencing the Heading Level
(presumably
Level 1 for the section heads) inserted into the Headers. StyleRef

will
(by
default) pick up the nearest referenced style automatically. So

each
section
will automatically pick up the section heading.

One of the advantages of using the StyleRef for Headers (or

Footers) is
that
you can eliminate the need to create new Word sections. Simply

starting
a
new main level 1 heading on a new page (use PageBreakBefore as part

of
the
Heading 1 style) and the runing StyleRef will pick up the new

headings.

--
Terry Farrell - Word MVP
http://word.mvps.org/


"Island Girl" wrote in

message
news Let's say I have a long document with 10 different sections. I

have
automatically numbered headings for each section; for example,

"Section
1.
Executive Summary," "Section 2. Risk Factors," and so on.

How can I use field codes in the headers so that when new

sections
are
inserted between existing ones, the headers will automatically

change
to
the
correct section number AND the accompanying text?

Am I dreaming?