Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
DevalilaJohn DevalilaJohn is offline
external usenet poster
 
Posts: 2
Default How Do I Carry The Same Header But Changing Footer

I'm working in Office 2007, but need to support 2003 as well.

I have a document template that will require the user to enter some header
text. From there I want the header text on all pages to reflect those
changes. The catch is that I have different header and footer checked as I
need page numbering in the footer starting on page 2.

I've tried using a styleref to a style that will be unique to the header,
but the field comes back with an error that there is no text with that style.
So I'm assuming that the styleref isn't looking at headers.

Any suggestions would be appreciated.

TIA,

John
  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default How Do I Carry The Same Header But Changing Footer

You use a styleref field in the header(s) to reference a named style in the
*document* not in the header.
That style must be applied to some text in the document for it to be
repeated in the header(s).
If you have a different first page header set , you will need to insert the
field in both first page and main headers.
See http://gregmaxey.mvps.org/Repeating_Data.htm
--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



DevalilaJohn wrote:
I'm working in Office 2007, but need to support 2003 as well.

I have a document template that will require the user to enter some
header text. From there I want the header text on all pages to
reflect those changes. The catch is that I have different header and
footer checked as I need page numbering in the footer starting on
page 2.

I've tried using a styleref to a style that will be unique to the
header, but the field comes back with an error that there is no text
with that style. So I'm assuming that the styleref isn't looking at
headers.

Any suggestions would be appreciated.

TIA,

John



  #3   Report Post  
Posted to microsoft.public.word.pagelayout
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default How Do I Carry The Same Header But Changing Footer

First off, you should be using the setting "Different first page" on the
Header & Footer Tools ribbon. That will unavoidably give you both a
first-page header and a first-page footer that are not connected to the
header and footer for the rest of the document.

Now you need some way to enter the user's information so it will appear in
both the first-page header and the "main" header (the one for the rest of
the document). Your experiment was correct: StyleRef fields draw information
only from the document body, not from headers or footers.

There are two basic schemes that you can use:

- Leave the first-page header empty and put the data entry area in the body
text on the first page, positioned at the top. Format it with unique styles
that can be picked up by StyleRef fields in the main header. This article
will be useful: http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm

- Program an AutoNew macro to display a userform
(http://www.word.mvps.org/FAQs/Userfo...eAUserForm.htm) that saves the
user's data in document variables. Create the first-page header with
DocVariable fields that display the data (instead of StyleRef fields), and
copy/paste the same stuff into the main header. When the user enters data,
the same text will appear in both first-page and main headers.

--
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.

DevalilaJohn wrote:
I'm working in Office 2007, but need to support 2003 as well.

I have a document template that will require the user to enter some
header text. From there I want the header text on all pages to
reflect those changes. The catch is that I have different header and
footer checked as I need page numbering in the footer starting on
page 2.

I've tried using a styleref to a style that will be unique to the
header, but the field comes back with an error that there is no text
with that style. So I'm assuming that the styleref isn't looking at
headers.

Any suggestions would be appreciated.

TIA,

John



  #4   Report Post  
Posted to microsoft.public.word.pagelayout
DevalilaJohn DevalilaJohn is offline
external usenet poster
 
Posts: 2
Default How Do I Carry The Same Header But Changing Footer



"Jay Freedman" wrote:

First off, you should be using the setting "Different first page" on the
Header & Footer Tools ribbon. That will unavoidably give you both a
first-page header and a first-page footer that are not connected to the
header and footer for the rest of the document.

Now you need some way to enter the user's information so it will appear in
both the first-page header and the "main" header (the one for the rest of
the document). Your experiment was correct: StyleRef fields draw information
only from the document body, not from headers or footers.

There are two basic schemes that you can use:

- Leave the first-page header empty and put the data entry area in the body
text on the first page, positioned at the top. Format it with unique styles
that can be picked up by StyleRef fields in the main header. This article
will be useful: http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm

- Program an AutoNew macro to display a userform
(http://www.word.mvps.org/FAQs/Userfo...eAUserForm.htm) that saves the
user's data in document variables. Create the first-page header with
DocVariable fields that display the data (instead of StyleRef fields), and
copy/paste the same stuff into the main header. When the user enters data,
the same text will appear in both first-page and main headers.

--
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.

DevalilaJohn wrote:
I'm working in Office 2007, but need to support 2003 as well.

I have a document template that will require the user to enter some
header text. From there I want the header text on all pages to
reflect those changes. The catch is that I have different header and
footer checked as I need page numbering in the footer starting on
page 2.

I've tried using a styleref to a style that will be unique to the
header, but the field comes back with an error that there is no text
with that style. So I'm assuming that the styleref isn't looking at
headers.

Any suggestions would be appreciated.

TIA,

John



Thank you Jay. Those are the options I was considering, so I guess there's no simpler mechanism.

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Header/Footer images 1/2 way Using JPGs for a Word Template Behind Tx[_2_] Page Layout 2 February 28th 07 04:36 PM
Changing Header/Footer images 1/2 way Using JPGs for a Word Template Behind Tx[_2_] Microsoft Word Help 1 February 27th 07 08:40 PM
permanently changing header and footer tabs swiss dave Page Layout 1 December 1st 06 04:08 AM
permanently changing header and footer tabs Lene Fredborg Page Layout 0 November 30th 06 11:43 PM
how can I carry out a find and replace within a Word header mike@ukcca Microsoft Word Help 1 March 12th 05 04:30 PM


All times are GMT +1. The time now is 01:05 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"