Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Jerusalem, Israel
    Posts
    708
    Thanks
    0
    Thanked 1 Time in 1 Post

    header from previous page (any)

    Can I reference the styleref of a style at the bottom of the previous page if the page does not start with that style?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: header from previous page (any)

    A StyleRef field in a page header or footer will search the current page from top to bottom for the specified style. If not found, it will search backwards through the previous pages.

    A StyleRef field in the document body will search backwards from the position of the field; if not found, it will search forward from the field.

    So it already does what you want, unless I misunderstand your question.

  3. #3
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Jerusalem, Israel
    Posts
    708
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: header from previous page (any)

    If there is a at the bottom of page 2 a style "header3" which is a header followed by two paragraphs of body text. That associated body text then continues to page 3 and then there is the next style "header3" which is a header followed by another two paragraphs of body text. The styleref will place in the header the "header 3" from page 3 even though the page is really starting with text that started from page 2. Can i force it in that situation to show the "header 3" from the bottom of page 2. WHILE if page 3 STARTS with a "header 3" style it will show that one?
    Thanks and I hope this is clearer

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: header from previous page (any)

    No, StyleRef doesn't work that way. You'd have to use section breaks and cross references, but you'd have to do that when you've finalized the document, not when it could still change.

  5. #5
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: header from previous page (any)

    You can do this if the Styleref field is in the body text, but not if it is in a header or footer. Here is an extract from the help for Styleref...
    <code>
    <big>STYLEREF field location</big>
    Where you insert the STYLEREF field determines the direction that Microsoft Word searches for the style and thus can affect which text is inserted.

    When you insert the field in:

    <font color=blue>Document text</font color=blue>

    Word searches backward from the STYLEREF field for the specified style. If the style isn't found, Word searches forward from the STYLEREF field.

    <font color=blue>Footnotes, annotations, and endnotes</font color=blue>

    Word searches backward from the footnote, annotation, or endnote reference mark for the specified style. If the style isn't found, Word searches forward from the reference mark.

    <font color=blue>Headers and footers (results for printed document)</font color=blue>

    Word searches the current page, from top to bottom, for the specified style. If the style isn't found, Word searches next from the top of the page to the beginning of the document, and then from the bottom of the page to the end of the document.
    If the l switch is used, Word searches from the bottom of the page to the beginning and then to the end of the document.

    <font color=blue>Headers and footers (results for electronic document)</font color=blue>

    Word searches the section (section: A portion of a document in which you set certain page formatting options. You create a new section when you want to change such properties as line numbering, number of columns, or headers and footers.) that contains the STYLEREF field, from the beginning, for the specified style. If the style isn't found, Word searches from the end of the section to the end of the document.
    </code>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •