Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Christchurch, New Zealand
    Posts
    250
    Thanks
    1
    Thanked 0 Times in 0 Posts

    StyleRef fields (Word 2000)

    Hi everyone,
    I have a document that uses heading styles. Every new heading 1 style starts a new page, and the contents under each heading may continue for more than one page. In the header I want a reference that references the last Heading 1 style. This I can do by using StyleRef and referencing the Heading 1 style. However, is there some code I can use that says, if this heading is on this page (and it will be at the top of the page as I am forcing page break before for Heading 1), don't put in the StyleRef, but if it is on the second and subsequent pages of the content under Heading 1, put in the heading.
    I can do the above with a macro that inserts a section break and formats the section with a different first page, but I am trying to avoid splitting the document into a section for each heading.
    I'm sure some sort of if statement field code ...

    Help Please! <img src=/S/help.gif border=0 alt=help width=23 height=15>

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: StyleRef fields (Word 2000)

    Hi Karen:
    I haven't thought of a practical way to do this. With the first heading, I can bookmark it with bmk1. Then you could try:
    { IF { pageref bmk1 } = { page } "" "{ styleref "heading 1" }" }

    where the curly brackets are inserted by pressing Ctrl+F9, not typed. However, this would mean bookmarking every heading & you'd have to have separate sections for each heading, so you could unlink the headings & use bmk1, bmk2, etc..

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Christchurch, New Zealand
    Posts
    250
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: StyleRef fields (Word 2000)

    Thanks Phil, however I think my original macro is easier. It inserts a section break and the document has already been formatted with different first page headers that don't contain the styleref and a header that does.

Posting Permissions

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