D
danielems
Hello,
I've look across the web and and Microsoft's help documents, and I
can't figure out how to make the STYLEREF field in my document header
work the way I want. I'll try to explain.
I have a document with chapters and verses. Each chapter header has a
style ("Heading 4") and each verse number has a style ("sup"). I'm
trying to get the header to tell me the first chapter and verse on the
page and the last chapter and verse on the page, e.g. John 2:20 -
John 3:9.
It works the way I want if a page only has one chapter, but when the
chapter changes in the middle of the page, then the header says John
3:20 - John 3:9 instead of John 2:20 - John 3:9. It is the same on
the screen and on a printed document.
Here are the header field codes:
{ STYLEREF "Heading 4" } : { STYLEREF "sup" } - { STYLEREF \l "Heading
4" } : { STYLEREF \l "sup" }
Is there a way to make with work? Word would have to look for the
most recent "Heading 4" style (possibly on a previous page) instead of
the first "Heading 4" style on this page. Is there another method I
should consider? I'm relatively comfortable with macros and writing
code, so don't hold back!
Thanks a bunch!
p.s. sorry if this has been asked before. If it has, then I didn't
have any luck finding it...
I've look across the web and and Microsoft's help documents, and I
can't figure out how to make the STYLEREF field in my document header
work the way I want. I'll try to explain.
I have a document with chapters and verses. Each chapter header has a
style ("Heading 4") and each verse number has a style ("sup"). I'm
trying to get the header to tell me the first chapter and verse on the
page and the last chapter and verse on the page, e.g. John 2:20 -
John 3:9.
It works the way I want if a page only has one chapter, but when the
chapter changes in the middle of the page, then the header says John
3:20 - John 3:9 instead of John 2:20 - John 3:9. It is the same on
the screen and on a printed document.
Here are the header field codes:
{ STYLEREF "Heading 4" } : { STYLEREF "sup" } - { STYLEREF \l "Heading
4" } : { STYLEREF \l "sup" }
Is there a way to make with work? Word would have to look for the
most recent "Heading 4" style (possibly on a previous page) instead of
the first "Heading 4" style on this page. Is there another method I
should consider? I'm relatively comfortable with macros and writing
code, so don't hold back!
Thanks a bunch!
p.s. sorry if this has been asked before. If it has, then I didn't
have any luck finding it...