A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Variable text in running headings



 
 
Thread Tools Display Modes
  #1  
Old May 14th, 2004, 01:19 AM
external usenet poster
 
Posts: n/a
Default Variable text in running headings

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!
  #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
  #3  
Old May 14th, 2004, 04:53 PM
external usenet poster
 
Posts: n/a
Default Variable text in running headings

Thank you: that's just what I needed!
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.