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

Link Merge Fields in Header and Footer



 
 
Thread Tools Display Modes
  #1  
Old September 8th 05, 02:07 PM
jeanmac
external usenet poster
 
Posts: n/a
Default Link Merge Fields in Header and Footer

Hi
I've looked at all the posts on linking fields so that the information in
one displays in all, and that's great - I didn't know you could do that.
However, I need to take a date in the header of a template and display it in
the footer of the second and subsequent pages - it can't be an updating date
it has to remember the exact date. Any ideas?

Many thanks
Ads
  #2  
Old September 8th 05, 09:40 PM
Daiya Mitchell
external usenet poster
 
Posts: n/a
Default

Is the date related to the doc in any way? E.g., you could use a CreateDate
field in two places.

Is this date merged? Use the same merge field twice.

Did you try Method 3 here?
http://gregmaxey.mvps.org/Repeating_Data.htm

If none of those work, a better description of the problem is probably
necessary.


On 9/8/05 6:07 AM, "jeanmac" wrote:

Hi
I've looked at all the posts on linking fields so that the information in
one displays in all, and that's great - I didn't know you could do that.
However, I need to take a date in the header of a template and display it in
the footer of the second and subsequent pages - it can't be an updating date
it has to remember the exact date. Any ideas?

Many thanks


--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/

  #3  
Old September 9th 05, 11:05 AM
jeanmac
external usenet poster
 
Posts: n/a
Default

What I want to do is enter the date at the beginning of the document. This
date is repeated in the footer of section two of the document and could be
over several pages. I want the date that I type in to be automatically
updated in the footer of section 2, I don't really want to use form fields
because it is the only instance and I don't want to have to protect the
document.

I have tried using an ASK field, but I can't get it to work. I've put the
ask field in the header and referenced the field in the document and the
footer to it. I found some help on that on a search, and I copied the
AutoNew macro associated with the help into the VBA module for the document
as instructed, but it doesn't work. When I save it as a template and open a
document based on it, the ASK field doesn't activate. I'm using Word XP.
Any ideas? I'm tearing my hair out now.

Thanks

"Daiya Mitchell" wrote:

Is the date related to the doc in any way? E.g., you could use a CreateDate
field in two places.

Is this date merged? Use the same merge field twice.

Did you try Method 3 here?
http://gregmaxey.mvps.org/Repeating_Data.htm

If none of those work, a better description of the problem is probably
necessary.


On 9/8/05 6:07 AM, "jeanmac" wrote:

Hi
I've looked at all the posts on linking fields so that the information in
one displays in all, and that's great - I didn't know you could do that.
However, I need to take a date in the header of a template and display it in
the footer of the second and subsequent pages - it can't be an updating date
it has to remember the exact date. Any ideas?

Many thanks


--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/


  #4  
Old September 9th 05, 01:55 PM
jeanmac
external usenet poster
 
Posts: n/a
Default

I wrote earlier saying I had used an ASK field and still hadn't had any luck.
I have now! I had put the ASK field in the header. When I moved it to the
top of the document and amended the code to look at Section 2 (the code I had
copied only looked at Section 1) it all worked. I would however, prefer to
have the ASK field in the header. The code I am using is:

Sub Autonew()
' Provoke the ASK field prompt
ActiveDocument.Fields.Update
' Update the cross-reference in the header
ActiveDocument.Sections(1).Headers(wdHeaderFooterP rimary). _
Range.Fields.Update
ActiveDocument.Sections(2).Footers(wdHeaderFooterP rimary). _
Range.Fields.Update
' Place the cursor at the end of memo so far
Selection.Collapse Direction:=wdCollapseEnd
Selection.GoTo What:=wdGoToBookmark, Name:="begin"

End Sub

Do you know of any way I can amend it to allow the ASK field to be in the
header? Thanks for your help.
Jeanmac

"Daiya Mitchell" wrote:

Is the date related to the doc in any way? E.g., you could use a CreateDate
field in two places.

Is this date merged? Use the same merge field twice.

Did you try Method 3 here?
http://gregmaxey.mvps.org/Repeating_Data.htm

If none of those work, a better description of the problem is probably
necessary.


On 9/8/05 6:07 AM, "jeanmac" wrote:

Hi
I've looked at all the posts on linking fields so that the information in
one displays in all, and that's great - I didn't know you could do that.
However, I need to take a date in the header of a template and display it in
the footer of the second and subsequent pages - it can't be an updating date
it has to remember the exact date. Any ideas?

Many thanks


--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/


  #5  
Old September 9th 05, 03:31 PM
Daiya Mitchell
external usenet poster
 
Posts: n/a
Default

I don't have a clue about ASK fields.

If you are putting the date on the first page (not the header), a StyleRef
field would carry the information and would presumably be simpler than ASK
fields.

However, I suspect with both ASK and StyleRef you run into the problem that
the header and the footer cannot talk to each other. They are both designed
to carry information from the main text, but not from each other. You might
test it with StyleRef, just in case it behaves differently. Why do you need
the date in the header, anyhow?

Where is this date coming from? What does it signify? If it matches one of
Word's predefined fields--for instance "date doc was created" "date doc was
last saved" "date doc was last printed"--using one of those will be by far
be the easiest way, and will let you put the date in the header.

Previously you said you needed the date in the footer of page 2 and forward.
Now you are saying you need it in Section 2. Which is correct? If you have
a section break between page 1 and page 2 just because you need a different
footer on page 2 than on page 1, that isn't necessary. You could use
"different first page" header/footer instead.

Does your use of "Merge" in the subject line mean this is a merge document,
or were you thinking these types of fields were called merge fields?


On 9/9/05 3:05 AM, "jeanmac" wrote:

What I want to do is enter the date at the beginning of the document. This
date is repeated in the footer of section two of the document and could be
over several pages. I want the date that I type in to be automatically
updated in the footer of section 2, I don't really want to use form fields
because it is the only instance and I don't want to have to protect the
document.

I have tried using an ASK field, but I can't get it to work. I've put the
ask field in the header and referenced the field in the document and the
footer to it. I found some help on that on a search, and I copied the
AutoNew macro associated with the help into the VBA module for the document
as instructed, but it doesn't work. When I save it as a template and open a
document based on it, the ASK field doesn't activate. I'm using Word XP.
Any ideas? I'm tearing my hair out now.

Thanks

"Daiya Mitchell" wrote:

Is the date related to the doc in any way? E.g., you could use a CreateDate
field in two places.

Is this date merged? Use the same merge field twice.

Did you try Method 3 here?
http://gregmaxey.mvps.org/Repeating_Data.htm

If none of those work, a better description of the problem is probably
necessary.


On 9/8/05 6:07 AM, "jeanmac" wrote:

Hi
I've looked at all the posts on linking fields so that the information in
one displays in all, and that's great - I didn't know you could do that.
However, I need to take a date in the header of a template and display it in
the footer of the second and subsequent pages - it can't be an updating date
it has to remember the exact date. Any ideas?

Many thanks


--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/



--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/

  #6  
Old September 12th 05, 02:16 PM
jeanmac
external usenet poster
 
Posts: n/a
Default

HI

The reason I wrote Merge fields in the header was that an ASK field is
normally a mail merge field. The reason why I have section two is not
because the document has a different first page header/footer, but because
the document has to go from one to two column text on the second page. The
ASK field allows me to manually enter the date which is then updated on the
first page of the document and in the footer of section 2, this is because
the date will be different each time and must not update.

I've got it working now, however my only question remaining was that I would
have liked to tuck the ASK field away in the header, but it's not happy with
that. If anyone has any ideas I'd be grateful.

Thank you for all your help so far.

Jeanmac

"Daiya Mitchell" wrote:

I don't have a clue about ASK fields.

If you are putting the date on the first page (not the header), a StyleRef
field would carry the information and would presumably be simpler than ASK
fields.

However, I suspect with both ASK and StyleRef you run into the problem that
the header and the footer cannot talk to each other. They are both designed
to carry information from the main text, but not from each other. You might
test it with StyleRef, just in case it behaves differently. Why do you need
the date in the header, anyhow?

Where is this date coming from? What does it signify? If it matches one of
Word's predefined fields--for instance "date doc was created" "date doc was
last saved" "date doc was last printed"--using one of those will be by far
be the easiest way, and will let you put the date in the header.

Previously you said you needed the date in the footer of page 2 and forward.
Now you are saying you need it in Section 2. Which is correct? If you have
a section break between page 1 and page 2 just because you need a different
footer on page 2 than on page 1, that isn't necessary. You could use
"different first page" header/footer instead.

Does your use of "Merge" in the subject line mean this is a merge document,
or were you thinking these types of fields were called merge fields?


On 9/9/05 3:05 AM, "jeanmac" wrote:

What I want to do is enter the date at the beginning of the document. This
date is repeated in the footer of section two of the document and could be
over several pages. I want the date that I type in to be automatically
updated in the footer of section 2, I don't really want to use form fields
because it is the only instance and I don't want to have to protect the
document.

I have tried using an ASK field, but I can't get it to work. I've put the
ask field in the header and referenced the field in the document and the
footer to it. I found some help on that on a search, and I copied the
AutoNew macro associated with the help into the VBA module for the document
as instructed, but it doesn't work. When I save it as a template and open a
document based on it, the ASK field doesn't activate. I'm using Word XP.
Any ideas? I'm tearing my hair out now.

Thanks

"Daiya Mitchell" wrote:

Is the date related to the doc in any way? E.g., you could use a CreateDate
field in two places.

Is this date merged? Use the same merge field twice.

Did you try Method 3 here?
http://gregmaxey.mvps.org/Repeating_Data.htm

If none of those work, a better description of the problem is probably
necessary.


On 9/8/05 6:07 AM, "jeanmac" wrote:

Hi
I've looked at all the posts on linking fields so that the information in
one displays in all, and that's great - I didn't know you could do that.
However, I need to take a date in the header of a template and display it in
the footer of the second and subsequent pages - it can't be an updating date
it has to remember the exact date. Any ideas?

Many thanks

--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/



--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/


  #7  
Old September 12th 05, 06:00 PM
Suzanne S. Barnhill
external usenet poster
 
Posts: n/a
Default

Is there some reason you can't use a CreateDate field?

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

"jeanmac" wrote in message
...
HI

The reason I wrote Merge fields in the header was that an ASK field is
normally a mail merge field. The reason why I have section two is not
because the document has a different first page header/footer, but because
the document has to go from one to two column text on the second page.

The
ASK field allows me to manually enter the date which is then updated on

the
first page of the document and in the footer of section 2, this is because
the date will be different each time and must not update.

I've got it working now, however my only question remaining was that I

would
have liked to tuck the ASK field away in the header, but it's not happy

with
that. If anyone has any ideas I'd be grateful.

Thank you for all your help so far.

Jeanmac

"Daiya Mitchell" wrote:

I don't have a clue about ASK fields.

If you are putting the date on the first page (not the header), a

StyleRef
field would carry the information and would presumably be simpler than

ASK
fields.

However, I suspect with both ASK and StyleRef you run into the problem

that
the header and the footer cannot talk to each other. They are both

designed
to carry information from the main text, but not from each other. You

might
test it with StyleRef, just in case it behaves differently. Why do you

need
the date in the header, anyhow?

Where is this date coming from? What does it signify? If it matches one

of
Word's predefined fields--for instance "date doc was created" "date doc

was
last saved" "date doc was last printed"--using one of those will be by

far
be the easiest way, and will let you put the date in the header.

Previously you said you needed the date in the footer of page 2 and

forward.
Now you are saying you need it in Section 2. Which is correct? If you

have
a section break between page 1 and page 2 just because you need a

different
footer on page 2 than on page 1, that isn't necessary. You could use
"different first page" header/footer instead.

Does your use of "Merge" in the subject line mean this is a merge

document,
or were you thinking these types of fields were called merge fields?


On 9/9/05 3:05 AM, "jeanmac" wrote:

What I want to do is enter the date at the beginning of the document.

This
date is repeated in the footer of section two of the document and

could be
over several pages. I want the date that I type in to be

automatically
updated in the footer of section 2, I don't really want to use form

fields
because it is the only instance and I don't want to have to protect

the
document.

I have tried using an ASK field, but I can't get it to work. I've put

the
ask field in the header and referenced the field in the document and

the
footer to it. I found some help on that on a search, and I copied the
AutoNew macro associated with the help into the VBA module for the

document
as instructed, but it doesn't work. When I save it as a template and

open a
document based on it, the ASK field doesn't activate. I'm using Word

XP.
Any ideas? I'm tearing my hair out now.

Thanks

"Daiya Mitchell" wrote:

Is the date related to the doc in any way? E.g., you could use a

CreateDate
field in two places.

Is this date merged? Use the same merge field twice.

Did you try Method 3 here?
http://gregmaxey.mvps.org/Repeating_Data.htm

If none of those work, a better description of the problem is

probably
necessary.


On 9/8/05 6:07 AM, "jeanmac" wrote:

Hi
I've looked at all the posts on linking fields so that the

information in
one displays in all, and that's great - I didn't know you could do

that.
However, I need to take a date in the header of a template and

display it in
the footer of the second and subsequent pages - it can't be an

updating date
it has to remember the exact date. Any ideas?

Many thanks

--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ:

http://mvp.support.microsoft.com/



--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ:

http://mvp.support.microsoft.com/



  #8  
Old September 12th 05, 07:10 PM
jeanmac
external usenet poster
 
Posts: n/a
Default

I am creating a template which will be used again and again, the date will
change each time the template is used. I hadn't thought about using a
CreateDate field, of course it will change every time the template is used.
Thankyou!!!

"Suzanne S. Barnhill" wrote:

Is there some reason you can't use a CreateDate field?

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

"jeanmac" wrote in message
...
HI

The reason I wrote Merge fields in the header was that an ASK field is
normally a mail merge field. The reason why I have section two is not
because the document has a different first page header/footer, but because
the document has to go from one to two column text on the second page.

The
ASK field allows me to manually enter the date which is then updated on

the
first page of the document and in the footer of section 2, this is because
the date will be different each time and must not update.

I've got it working now, however my only question remaining was that I

would
have liked to tuck the ASK field away in the header, but it's not happy

with
that. If anyone has any ideas I'd be grateful.

Thank you for all your help so far.

Jeanmac

"Daiya Mitchell" wrote:

I don't have a clue about ASK fields.

If you are putting the date on the first page (not the header), a

StyleRef
field would carry the information and would presumably be simpler than

ASK
fields.

However, I suspect with both ASK and StyleRef you run into the problem

that
the header and the footer cannot talk to each other. They are both

designed
to carry information from the main text, but not from each other. You

might
test it with StyleRef, just in case it behaves differently. Why do you

need
the date in the header, anyhow?

Where is this date coming from? What does it signify? If it matches one

of
Word's predefined fields--for instance "date doc was created" "date doc

was
last saved" "date doc was last printed"--using one of those will be by

far
be the easiest way, and will let you put the date in the header.

Previously you said you needed the date in the footer of page 2 and

forward.
Now you are saying you need it in Section 2. Which is correct? If you

have
a section break between page 1 and page 2 just because you need a

different
footer on page 2 than on page 1, that isn't necessary. You could use
"different first page" header/footer instead.

Does your use of "Merge" in the subject line mean this is a merge

document,
or were you thinking these types of fields were called merge fields?


On 9/9/05 3:05 AM, "jeanmac" wrote:

What I want to do is enter the date at the beginning of the document.

This
date is repeated in the footer of section two of the document and

could be
over several pages. I want the date that I type in to be

automatically
updated in the footer of section 2, I don't really want to use form

fields
because it is the only instance and I don't want to have to protect

the
document.

I have tried using an ASK field, but I can't get it to work. I've put

the
ask field in the header and referenced the field in the document and

the
footer to it. I found some help on that on a search, and I copied the
AutoNew macro associated with the help into the VBA module for the

document
as instructed, but it doesn't work. When I save it as a template and

open a
document based on it, the ASK field doesn't activate. I'm using Word

XP.
Any ideas? I'm tearing my hair out now.

Thanks

"Daiya Mitchell" wrote:

Is the date related to the doc in any way? E.g., you could use a

CreateDate
field in two places.

Is this date merged? Use the same merge field twice.

Did you try Method 3 here?
http://gregmaxey.mvps.org/Repeating_Data.htm

If none of those work, a better description of the problem is

probably
necessary.


On 9/8/05 6:07 AM, "jeanmac" wrote:

Hi
I've looked at all the posts on linking fields so that the

information in
one displays in all, and that's great - I didn't know you could do

that.
However, I need to take a date in the header of a template and

display it in
the footer of the second and subsequent pages - it can't be an

updating date
it has to remember the exact date. Any ideas?

Many thanks

--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ:

http://mvp.support.microsoft.com/



--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ:

http://mvp.support.microsoft.com/




  #9  
Old September 12th 05, 09:28 PM
Daiya Mitchell
external usenet poster
 
Posts: n/a
Default

I'm just curious. How did you manage to "not think about a CreateDate
field" when I suggested it twice?

I've reproduced what I said below--was there something unclear about the
phrasing that I could improve for the future? Suggestions welcome.


On 9/12/05 11:10 AM, "jeanmac" wrote:

I am creating a template which will be used again and again, the date will
change each time the template is used. I hadn't thought about using a
CreateDate field, of course it will change every time the template is used.
Thankyou!!!

"Suzanne S. Barnhill" wrote:

Is there some reason you can't use a CreateDate field?



"Daiya Mitchell" wrote:



Where is this date coming from? What does it signify? If it matches one of
Word's predefined fields--for instance "date doc was created" "date doc was
last saved" "date doc was last printed"--using one of those will be by far
be the easiest way, and will let you put the date in the header.



"Daiya Mitchell" wrote:

Is the date related to the doc in any way? E.g., you could use a
CreateDate field in two places.


  #10  
Old September 12th 05, 10:50 PM
Suzanne S. Barnhill
external usenet poster
 
Posts: n/a
Default

I wondered about that, too, as I was pretty sure CreateDate had been
suggested already in this thread.

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

"Daiya Mitchell" wrote in message
.. .
I'm just curious. How did you manage to "not think about a CreateDate
field" when I suggested it twice?

I've reproduced what I said below--was there something unclear about the
phrasing that I could improve for the future? Suggestions welcome.


On 9/12/05 11:10 AM, "jeanmac" wrote:

I am creating a template which will be used again and again, the date

will
change each time the template is used. I hadn't thought about using a
CreateDate field, of course it will change every time the template is

used.
Thankyou!!!

"Suzanne S. Barnhill" wrote:

Is there some reason you can't use a CreateDate field?



"Daiya Mitchell" wrote:



Where is this date coming from? What does it signify? If it matches

one of
Word's predefined fields--for instance "date doc was created" "date

doc was
last saved" "date doc was last printed"--using one of those will be

by far
be the easiest way, and will let you put the date in the header.



"Daiya Mitchell" wrote:

Is the date related to the doc in any way? E.g., you could use a
CreateDate field in two places.



 




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
No Header and Footer toolbar Amy Microsoft Word Help 2 August 16th 05 07:25 PM
Header missing from mail merge document Nan Hauser Mailmerge 4 June 28th 05 04:50 PM
How: header and footer print on first page only (Wordb2000) Ken K Page Layout 10 June 20th 05 09:18 PM
No footer and header after mail merge Dainkes Mailmerge 0 February 17th 05 03:21 PM
Same header but even/odd footer (sorry for the new thread) B?atrice Karjalainen Page Layout 1 December 16th 04 01:40 AM


All times are GMT +1. The time now is 09:08 PM.


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