View Single Post
  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Style ref in headers - can it work without using section break

That's not the way it should work. It should pick up the first instance of
the style on the page and keep that until another paragraph in that style
occurs. There is something wrong with the way your document is set up if
you're getting the result you describe. Possibly a slight difference in the
names of the styles applied?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"ellinoz" wrote in message
...
Hi Jean-Guy,

The STYLEREF is in the header, relating to Heading 1s in the body of the
document. We are hoping that we can make it pick up each instance of the
Heading 1 as it flows through the document, without having to put in any
section breaks, so that if the heading on a page is 'Financials' then the
header will say that, and if the heading of the next page is 'Company
Overview' the header will say that, without using section breaks.

However, as it stands if there are 10 instances of Heading 1 in the
document, without section breaks it only picks up the last one and puts
that
in all the headers.

Hope that makes sense. I have a feeling it goes entirely against the way
that Word headers work but just wondered if it's possible.

"Jean-Guy Marcil" wrote:

"ellinoz" wrote:

Hi,

We're trying to develop a template in Word using a styleref in the
header.
This is to pick up each time the Heading 1 changes. Is it possible for
the
headers to reflect the Heading 1 text without having section breaks in
between each? Every time I remove the section breaks it puts the very
last
Heading 1 all through the document.


Are you writing that you want a STYLEREF field to pick up only the first
HEADING 1 text in the document?
If so,this is not how STYLEREF fields work. By default they pick up the
nearest occurence of the style chosen in the field.

So, if you have a field {STYLEREF 1}, it will display the text from the
nearest previous Heading 1 paragraph.

If you really want a field to display only the first occurence of the
Heading 1 text in the document, either use a new style and use that
instead
at that location, or use a character style on top of the Heading 1 style
and
use that in the STYLEREF field, or use REF field with a bookmark at the
first
heading 1 location.