Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 97 Mail Merge to include sub mail merge documents

Status
Not open for further replies.

jeffward

MIS
Jul 3, 2002
33
GB
I have a complex mail merge document and to simplify testing etc. I have broken it down into a number of sepertate mail merge documents.

I have been using code to merge each sub document to a new file and then insert each file into a final document prior to saving as a stand alone letter.

I have tried creating a base document with each sub document linked using INCLUDETEXT.

I can merge this to a new document but the resulting document just has the links.

if I print this it is OK but I actually need to save the letter as it would be printed i.e. save the final mail nerge text rather than the links.

For example: -

My main document could say
{Title}{Name} etc.
{INCLUDETEXT "subdoc" }
{AddressLine1}
{AddressLine2} etc.

When i mail merge this to a new document I will get: -

Mr Joe Bloggs
{INCLUDETEXT "subdoc" }
10 The High Street
Toytown etc.

What I actually want is the subdoc (which is itself a mail merge document) inserted i.e.

Mr Joe Bloggs
This is the text for Mr Joe Bloggs that came from the subdoc
10 The High Street
Toytown etc.

Is there any way to do this?
 
Never mind, I have cracked it.

For those that are interested you need to put the INCLUDE test into an IF and it then works, for example: -

{ IF "1" = "1" {INCLUDETEXT "subdoc"} "" }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top