• conditional Styleref in header? (Word 2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » conditional Styleref in header? (Word 2003)

    Author
    Topic
    #436043

    Could someone please help with this conditional header problem I am having?
    My document has 4 heading levels in use: 1, 2, 4, 5.
    Heading 2 is used for Chapters and always starts on a new page.
    Heading 1 is used for Part and also starts on a new page.
    Heading 4 is often, but not always, direct formatted to a “page break before”
    I have defined the header as STYLEREF “Heading 2” – STYLEREF “Heading 4” which gives me the chapter and topic at the top of the page perfectly for most pages.
    But sometimes I don’t want the last Heading 2 – If the page starts a new Part (Heading 1) I want STYLEREF “Heading 1” instead (not the last heading 2 of the previous part).
    I am looking for a way to make the heading conditional. I can define the conditions in English but don’t know if it is possible within a field code in a header.
    Here is the logic in plain English:
    If the page number of the most recent Heading 2 is greater than the page number of the most recent Heading 1, use Heading2-Heading4, otherwise use Heading1 alone.
    Is this possible?
    Thanks in advance,
    Judith

    Viewing 0 reply threads
    Author
    Replies
    • #1032575

      The one switch that seems to relate to the position of a STYLEREF field — p — doesn’t seem to work correctly in a Header. Hmmm…

    Viewing 0 reply threads
    Reply To: conditional Styleref in header? (Word 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: