A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

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 » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Microsoft Word Help
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

how can i insert chapter title automatically into header



 
 
Thread Tools Display Modes
  #1  
Old May 23rd 06, 12:06 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default how can i insert chapter title automatically into header

I would like to add chapter heading into header section and it should update
automatically whenever I change the title - i need scripting details.
Ads
  #2  
Old May 23rd 06, 12:26 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default how can i insert chapter title automatically into header

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.

On Tue, 23 May 2006 04:06:02 -0700, Rekha
wrote:

I would like to add chapter heading into header section and it should update
automatically whenever I change the title - i need scripting details.

  #3  
Old May 23rd 06, 12:27 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default how can i insert chapter title automatically into header

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
...
I would like to add chapter heading into header section and it

should update
automatically whenever I change the title - i need scripting

details.






  #4  
Old May 23rd 06, 02:46 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default how can i insert chapter title automatically into header

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" wrote in message
...
I would like to add chapter heading into header section and it should

update
automatically whenever I change the title - i need scripting details.


  #5  
Old March 11th 14, 06:27 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: 1
Default how can i insert chapter title automatically into header

Awesome! Thank you, Stefan for the SYTLEREF solution. Using {STYLEREF 1} Worked perfectly!
  #6  
Old March 12th 14, 12:24 AM posted to microsoft.public.word.docmanagement
Stefan Blom[_3_]
external usenet poster
 
Posts: 6,809
Default how can i insert chapter title automatically into header

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




wrote in message
...
Awesome! Thank you, Stefan for the SYTLEREF solution. Using {STYLEREF 1}
Worked perfectly!


 




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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert part of Filename in Header Wendy V Mailmerge 7 May 2nd 06 02:52 PM
how do i insert both chapter and section number on a page hwm1120 Microsoft Word Help 5 March 30th 06 02:49 AM
How to auto generate the header to be the chapter title? Rita New Users 1 March 15th 05 12:19 PM
i have word document (pg. 1,2,3,4,5,6)How can i fix header title . Word Question Microsoft Word Help 1 January 13th 05 05:56 PM
i have word document (pg. 1,2,3,4,5,6)How can i fix header title . word question Microsoft Word Help 0 January 13th 05 05:31 PM


All times are GMT +1. The time now is 02:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 2004-2014 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.