Table of Contents Page Numbers for Merged Document- sections?

G

gswan16

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!
 
D

Doug Robbins - Word MVP

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top