M
MJK
I have a document that has headings in it, each marked with the appropriate style. I'm looking for a way to have the page headers reflect the text of the previous "Heading 1" paragraph, or, if there's a "Heading 1" paragraph on the page, the text of the first such paragraph. In other words, I'm looking for something that behaves the way that STYLEREF is documented as behaving.
I've tried using {STYLEREF "Heading 1" \* CHARFORMAT} in the page header for odd-numbered pages.
On page 1, this works perfectly and shows the correct text.
On page 2, there is a Heading 1 paragraph.
On page 3, the page header shows the original text (as in page 1) and ignores the text of the Heading 1 paragraph on page 2.
In fact the odd-numbered page headers show identical text throughout the document and ignore all "Heading 1" paragraphs except the first one.
As an experiment I tried inserting a (continuous) section break in the middle of the document: the odd-numbered page headers after that point reflected the last "Heading 1" paragraph *before* the section break.
Is it really necessary to insert a section break after every occurrence of one's chosen style, if one wants STYLEREF to work properly?
I'm using Word 2000.
I've tried using {STYLEREF "Heading 1" \* CHARFORMAT} in the page header for odd-numbered pages.
On page 1, this works perfectly and shows the correct text.
On page 2, there is a Heading 1 paragraph.
On page 3, the page header shows the original text (as in page 1) and ignores the text of the Heading 1 paragraph on page 2.
In fact the odd-numbered page headers show identical text throughout the document and ignore all "Heading 1" paragraphs except the first one.
As an experiment I tried inserting a (continuous) section break in the middle of the document: the odd-numbered page headers after that point reflected the last "Heading 1" paragraph *before* the section break.
Is it really necessary to insert a section break after every occurrence of one's chosen style, if one wants STYLEREF to work properly?
I'm using Word 2000.