View Single Post
  #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

There are a number of Fields that (for good reason) do not survive the mail
merge process. The alternative is to create a "roll-your-own" vba
equivalent to mail merge where in place of a mail merge main document
containing the merge fields, you use a template containing DOCVARIABLE
fields and you use vba to iterate through the data source, creating a new
document from the template for each record in the data source, setting the
values of document variables in each letter to the values from the current
record, updating the fields in the document so that the data is displayed in
the DOCVARIABLE fields and then saving and closing the document before
repeating the process for the next and each subsequent record.

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

"beanbabe" wrote in message
...
Hi

i have my standard word doucment which has a Table of Contents in it. the
trouble i have is when i merge this document with my data which is in
excel
and i am merging via OLE, it messes up my Table of Contents all the links
break down. Please can someone advise of a workaround for this.

Thanks