View Single Post
  #2  
Old May 14th, 2004, 02:07 AM
Jay Freedman
external usenet poster
 
Posts: n/a
Default Variable text in running headings

Please read the Word Help topic about the StyleRef field.

wrote:

Within a section, I'd like the heading of each page to
reflect the text of the level-2 header. There are two
cases:

- If the page starts with a level-2 header, the page
heading should either be blank or contain the text **of
that header**. I don't much mind which.

- If the page doesn't start with a level-2 header, the
page heading should contain the text **of the most recent
level-2 header**.

The only way I can see of doing all this is to use a macro
to copy into the header text... but the trouble is that
I'd also have to make every page a separate section, just
in case!! Possibly there is a way to make header text
different on different pages, without having to make each
page into a separate section. Perhaps by referring to a
field whose value changes through the document? Or to a
macro that somehow gets evaluated afresh on each page???

All advice will be welcome!



--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://www.mvps.org/word