Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Island Girl Island Girl is offline
external usenet poster
 
Posts: 192
Default Field codes for headers

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?
  #2   Report Post  
Posted to microsoft.public.word.newusers
Nozza Nozza is offline
external usenet poster
 
Posts: 11
Default Field codes for headers

On Wed, 8 Nov 2006 12:57:01 -0800, Island Girl
wrote:

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?


Use insert/field/Styleref and then choose which style - say Heading 1.

HTH

Noz
--
Email (ROT13)

  #3   Report Post  
Posted to microsoft.public.word.newusers
 
Posts: n/a
Default Field codes for headers

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?



  #4   Report Post  
Posted to microsoft.public.word.newusers
Island Girl Island Girl is offline
external usenet poster
 
Posts: 192
Default Field codes for headers

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?




  #5   Report Post  
Posted to microsoft.public.word.newusers
Island Girl Island Girl is offline
external usenet poster
 
Posts: 192
Default Field codes for headers

Thanks a million, Noz!

"Nozza" wrote:

On Wed, 8 Nov 2006 12:57:01 -0800, Island Girl
wrote:

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?


Use insert/field/Styleref and then choose which style - say Heading 1.

HTH

Noz
--
Email (ROT13)




  #6   Report Post  
Posted to microsoft.public.word.newusers
 
Posts: n/a
Default Field codes for headers

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?






  #7   Report Post  
Posted to microsoft.public.word.newusers
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Field codes for headers

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?






  #8   Report Post  
Posted to microsoft.public.word.newusers
Island Girl Island Girl is offline
external usenet poster
 
Posts: 192
Default Field codes for headers

Terry, thanks again for this and all you do.

" wrote:

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?






  #9   Report Post  
Posted to microsoft.public.word.newusers
Island Girl Island Girl is offline
external usenet poster
 
Posts: 192
Default Field codes for headers

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?







  #10   Report Post  
Posted to microsoft.public.word.newusers
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
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?








Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My headers / footers only show field codes KathyS Microsoft Word Help 2 July 28th 06 11:01 PM
Saving word document with field results not field codes Cambdoc Microsoft Word Help 2 July 14th 06 10:51 AM
Hiding Field Codes Me Microsoft Word Help 6 June 4th 06 02:09 AM
Field codes showing Error Reference Source Not Found KAM Microsoft Word Help 2 March 26th 06 11:49 PM
Enter text in a field and have it appear as entered elsewhere Gregory Winters Microsoft Word Help 6 November 1st 05 02:09 AM


All times are GMT +1. The time now is 01:14 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"