A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Field codes for headers



 
 
Thread Tools Display Modes
  #1  
Old November 8th, 2006, 09:57 PM posted to microsoft.public.word.newusers
Island Girl
external usenet poster
 
Posts: 227
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  
Old November 8th, 2006, 11:46 PM posted to microsoft.public.word.newusers
Nozza
external usenet poster
 
Posts: 39
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  
Old November 8th, 2006, 11:58 PM posted to microsoft.public.word.newusers
external usenet poster
 
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  
Old November 9th, 2006, 06:56 AM posted to microsoft.public.word.newusers
Island Girl
external usenet poster
 
Posts: 227
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  
Old November 9th, 2006, 06:56 AM posted to microsoft.public.word.newusers
Island Girl
external usenet poster
 
Posts: 227
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  
Old November 9th, 2006, 02:54 PM posted to microsoft.public.word.newusers
external usenet poster
 
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  
Old November 9th, 2006, 03:28 PM posted to microsoft.public.word.newusers
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
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  
Old November 9th, 2006, 04:56 PM posted to microsoft.public.word.newusers
Island Girl
external usenet poster
 
Posts: 227
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  
Old November 9th, 2006, 04:58 PM posted to microsoft.public.word.newusers
Island Girl
external usenet poster
 
Posts: 227
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  
Old November 9th, 2006, 05: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?








 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.