Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Chapter title and page number as page number in Word 07
I would like to use the current chapter title (as defined by the most recent
occurrence of Header 1 formatting in a document) as an element of the page number in a Word 07 document I am creating. I can obviously do that manually by putting a cross-reference on each page. I can also obviously have Word recognize how many times Header 1 has appeared, because that seems to be what triggers Word to increment the chapter number by 1. But how can I get word to automatically recognize not just the chapter number, but text contained within the chapter title, and have it appear in the page number like so: Name of the chapter here | 2 I'm not any good with Visual Basic, but I am happy to revise existing code with offered suggestions and then play around with it. Thanks! |
#3
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Chapter title and page number as page number in Word 07
You will need two Style Ref fields, one for the paragraph number and one for
the paragraph text. See http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "The John Owen" The John wrote in message news I would like to use the current chapter title (as defined by the most recent occurrence of Header 1 formatting in a document) as an element of the page number in a Word 07 document I am creating. I can obviously do that manually by putting a cross-reference on each page. I can also obviously have Word recognize how many times Header 1 has appeared, because that seems to be what triggers Word to increment the chapter number by 1. But how can I get word to automatically recognize not just the chapter number, but text contained within the chapter title, and have it appear in the page number like so: Name of the chapter here | 2 I'm not any good with Visual Basic, but I am happy to revise existing code with offered suggestions and then play around with it. Thanks! |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word 2003 TOC list chapter name, number, and page number | Microsoft Word Help | |||
Chapter Number in the Header and Page number in the footer | Microsoft Word Help | |||
TOC Spanning Multiple Documents -- Chapter Number in Page Number | Microsoft Word Help | |||
How do I insert chapter number with page number in footer? | Microsoft Word Help | |||
How do I get chapter number with my page number in a document? | Microsoft Word Help |