Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
I have a footer that is populated with the current page's "Heading 2"; and I
use this template often. However, sometimes the work I do does not include having a "Heading 2", and so obviously I can just delete that part of the footer. But, I was wondering if there's any way that I could have the footer populate the field if there is a Heading 2. [to have it populate the Heading 2 in the footer, I go to: Insert Field switch the "Categories:" drop down to "Links and References" in the resulting Field names: list I click on "StyleRef" And then click on "Heading 2" in the resulting Style name: list. .... in case that helps] Any help would be very appreciated. Thanks, and happy new year! Matt |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
You could use a conditional field eg
{ IF{ STYLEREF "Heading 2" } "Error*" "{ STYLEREF "Heading 2" }" } This checks for the error message that occurs when there is no named style and only inserts the Styleref field when the error doesn't occur. This certainly works in Word 2003 at least. http://www.gmayor.com/formatting_wor...s.htm#Styleref -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org MatthewTap wrote: I have a footer that is populated with the current page's "Heading 2"; and I use this template often. However, sometimes the work I do does not include having a "Heading 2", and so obviously I can just delete that part of the footer. But, I was wondering if there's any way that I could have the footer populate the field if there is a Heading 2. [to have it populate the Heading 2 in the footer, I go to: Insert Field switch the "Categories:" drop down to "Links and References" in the resulting Field names: list I click on "StyleRef" And then click on "Heading 2" in the resulting Style name: list. ... in case that helps] Any help would be very appreciated. Thanks, and happy new year! Matt |
#3
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Graham --
Thanks -- much appreciated. Matt "Graham Mayor" wrote: You could use a conditional field eg { IF{ STYLEREF "Heading 2" } "Error*" "{ STYLEREF "Heading 2" }" } This checks for the error message that occurs when there is no named style and only inserts the Styleref field when the error doesn't occur. This certainly works in Word 2003 at least. http://www.gmayor.com/formatting_wor...s.htm#Styleref -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org MatthewTap wrote: I have a footer that is populated with the current page's "Heading 2"; and I use this template often. However, sometimes the work I do does not include having a "Heading 2", and so obviously I can just delete that part of the footer. But, I was wondering if there's any way that I could have the footer populate the field if there is a Heading 2. [to have it populate the Heading 2 in the footer, I go to: Insert Field switch the "Categories:" drop down to "Links and References" in the resulting Field names: list I click on "StyleRef" And then click on "Heading 2" in the resulting Style name: list. ... in case that helps] Any help would be very appreciated. Thanks, and happy new year! Matt |
#4
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
You are welcome
![]() -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org MatthewTap wrote: Graham -- Thanks -- much appreciated. Matt "Graham Mayor" wrote: You could use a conditional field eg { IF{ STYLEREF "Heading 2" } "Error*" "{ STYLEREF "Heading 2" }" } This checks for the error message that occurs when there is no named style and only inserts the Styleref field when the error doesn't occur. This certainly works in Word 2003 at least. http://www.gmayor.com/formatting_wor...s.htm#Styleref -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org MatthewTap wrote: I have a footer that is populated with the current page's "Heading 2"; and I use this template often. However, sometimes the work I do does not include having a "Heading 2", and so obviously I can just delete that part of the footer. But, I was wondering if there's any way that I could have the footer populate the field if there is a Heading 2. [to have it populate the Heading 2 in the footer, I go to: Insert Field switch the "Categories:" drop down to "Links and References" in the resulting Field names: list I click on "StyleRef" And then click on "Heading 2" in the resulting Style name: list. ... in case that helps] Any help would be very appreciated. Thanks, and happy new year! Matt |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Fields inside footer -- Last record showing field instead of data | Mailmerge | |||
different footer with common data | Microsoft Word Help | |||
How do I access a FileMaker Pro database to generate my data sourc | Mailmerge | |||
Change Footer on pg 2 to be different then the footer on pg 1 | Microsoft Word Help | |||
Styleref field in footer showing next page data | Microsoft Word Help |