A Microsoft Office (Excel, Word) forum. OfficeFrustration

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 » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Word 2007, mail merge, header, page numbering



 
 
Thread Tools Display Modes
  #1  
Old November 4th, 2009, 05:27 PM posted to microsoft.public.word.mailmerge.fields
hinesgg
external usenet poster
 
Posts: 2
Default Word 2007, mail merge, header, page numbering

I have a template originally created in Word 2003, where it worked perfectly.
I have not been able to get it to work correctly since we converted to Word
2007. The template is an invoice. The user first merges the data. Then
creates a header and inserts a quick part that contains our company logo and
other information. The quick part also contains the invoice number, which is
created using the page numbering feature. In Word 2003 the user was able to
change the page number of the first page and all pages following would also
change consecutively. I know this must be really simple, but I can't figure
out why the page numbers on page 2 and all following pages are not changing.
It appears that Word is creating a different section for each merged record,
but I think it used to do that in Word 2003 as well. What's different now?
What do I need to do to fix this?

Thanks in advance for any help you can offer.
--
Gail Hines
Texas State Auditor''s Office

512-936-9760
  #2  
Old November 5th, 2009, 08:38 AM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Word 2007, mail merge, header, page numbering

I do not think that there has been a change in the way the headers are
created in mail merged documents from Word 2003 to Word 2007 as from my
tests with both versions, the headers were not linked to that in the
previous section.

If you run the following macro on the document created by executing the
merge, it will link all of the headers in the document to that in the first
section.

Dim i As Long
With ActiveDocument
For i = 2 To .Sections.Count - 1
.Sections(i).Headers(wdHeaderFooterPrimary).LinkTo Previous = True
Next i
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"hinesgg" wrote in message
...
I have a template originally created in Word 2003, where it worked
perfectly.
I have not been able to get it to work correctly since we converted to
Word
2007. The template is an invoice. The user first merges the data. Then
creates a header and inserts a quick part that contains our company logo
and
other information. The quick part also contains the invoice number, which
is
created using the page numbering feature. In Word 2003 the user was able
to
change the page number of the first page and all pages following would
also
change consecutively. I know this must be really simple, but I can't
figure
out why the page numbers on page 2 and all following pages are not
changing.
It appears that Word is creating a different section for each merged
record,
but I think it used to do that in Word 2003 as well. What's different
now?
What do I need to do to fix this?

Thanks in advance for any help you can offer.
--
Gail Hines
Texas State Auditor''s Office

512-936-9760


 




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


All times are GMT +1. The time now is 03:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.