View Single Post
  #5   Report Post  
Stefan Blom
 
Posts: n/a
Default

To capture heading titles in a header (or footer), you could
alternatively use the STYLEREF field. Look it up in Help.

--
Stefan Blom


"SirWizard" wrote in message
...
Thanks Greg,

That's somewhat like the way I captured chapter names to place into

page
headers for a book I helped a friend edit.

"Greg Maxey" wrote:

SirWizard,

You can cobble together a fair work around using some AutoText

fields and an
If fields.

Insert and select single page break and save if as an AutoText

entry. Name
it SPB
Insert and select two adjacent page breaks and save it as an

AutoText entry.
Name it DPB

Enter the following field code. Note all brackes { } are entered

with
CTRL+F9

{IF{=Mod({Page},2)}="0"{AutoText "SPB"}{AutoText "DPB"}}

Select this field and save it as an AutoText entry. I used

Newheading1

OK, when you apply a new heading 1 start typing Newheading1 and

when the
autocomplete tip fires, press enter. The page breaks should

format your
document as you described.

HTH