Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
gswan16 gswan16 is offline
external usenet poster
 
Posts: 1
Default Table of Contents Page Numbers for Merged Document- sections?

I'm trying to create a table of contents for a document that was created
using a mail merge, I can get the titles to appear, but all page numbers are
shown as "1". I'm guessing it has to do with the fact that it's showing the
pages as different sections instead of pages? But don't know if that is
really the issue or how to correct... Please Advise ASAP. Thanks!
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Table of Contents Page Numbers for Merged Document- sections?

Run a macro containing the following code on the document to set the page
numbers in each Section to continue from the previous Section. It does not
matter whether you have the page numbers in the header or footer.

Dim i As Long

With ActiveDocument
For i = 1 To .Sections.Count
.Sections(i).Footers(wdHeaderFooterPrimary).PageNu mbers.RestartNumberingAtSection
= False
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
"gswan16" wrote in message
...
I'm trying to create a table of contents for a document that was created
using a mail merge, I can get the titles to appear, but all page numbers
are
shown as "1". I'm guessing it has to do with the fact that it's showing
the
pages as different sections instead of pages? But don't know if that is
really the issue or how to correct... Please Advise ASAP. Thanks!


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
Table of Contents - Page Numbers Kat Microsoft Word Help 3 October 19th 07 04:11 PM
page numbering/table of contents/separate sections marihari Microsoft Word Help 1 July 16th 07 11:18 PM
Table of Contents & Page Numbers Janie Microsoft Word Help 1 November 2nd 06 09:21 AM
table of contents page numbers without chapter numbers Bety at Keltec Microsoft Word Help 5 October 26th 06 12:48 AM
Page Numbers in Table of Contents thelisha Page Layout 5 December 9th 04 01:59 PM


All times are GMT +1. The time now is 11:01 PM.

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"