Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how can i insert chapter title automatically into header

5,237 views
Skip to first unread message

Rekha

unread,
May 23, 2006, 7:06:02 AM5/23/06
to
I would like to add chapter heading into header section and it should update
automatically whenever I change the title - i need scripting details.

Jay Freedman

unread,
May 23, 2006, 7:26:36 AM5/23/06
to
Look in the help topic about the StyleRef field. You don't need any
scripting.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

Stefan Blom

unread,
May 23, 2006, 7:27:28 AM5/23/06
to
Are you using a particular style for your chapter headings? If so, you
can use a STYLEREF field to display the "current" text in that style
in your headers.

Here's how to do it: On the View menu, click Header and Footer. With
the cursor in the header area, press Ctrl+F9. Word inserts field
delimiters, {}. Within these, type STYLEREF "stylename_here". For
example, if you are using Heading 1 as the style for chapter text, you
would type STYLEREF "Heading 1". (Actually, since the built-in
headings have "magical" properties, you can use STYLEREF 1 instead.)
Press F9 to update the display. If your headings are outline-numbered,
and you want to display the number too, you'd have to insert another
STYLEREF field like this: { STYLEREF "stylename" \n }.

--
Stefan Blom
Microsoft Word MVP


"Rekha" wrote in message
news:779815EE-36D1-4F0A...@microsoft.com...

Suzanne S. Barnhill

unread,
May 23, 2006, 9:46:46 AM5/23/06
to
Jay and Stefan have given you the basics. For more useful things you can do
with the StyleRef field, see http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org


Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Rekha" <Re...@discussions.microsoft.com> wrote in message
news:779815EE-36D1-4F0A...@microsoft.com...

kwsch...@gmail.com

unread,
Mar 11, 2014, 1:27:37 PM3/11/14
to
Awesome! Thank you, Stefan for the SYTLEREF solution. Using {STYLEREF 1} Worked perfectly!

Stefan Blom

unread,
Mar 11, 2014, 7:24:51 PM3/11/14
to
You are welcome.

Note that there was a bug with STYLEREF in the initial version of Word 2013,
but it should be fixed if you have installed Service Pack 1.

--
Stefan Blom
Microsoft Word MVP




<kwsch...@gmail.com> wrote in message
news:d50519e1-d476-4dec...@googlegroups.com...
0 new messages