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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|