Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Pam Edwards Pam Edwards is offline
external usenet poster
 
Posts: 1
Default merge more than one line

I am trying to merge from excel a list of invoices to each customer. I have
come up with a formula but it is not working, and it prints on the letter
instead of the data. What am I doing wrong.
ORDER PO INVOICE DATE amount
01469 4500263177 255446 8/21/2007 0

{IF {MERGESEQ} = 1 {MERGEFIELD CustomerNum} }
{SET Place 1 {MERGEFIELD CustomerNum}}
{IF {Place2} {Place1}
{MERGEFIELD CustomerNum}
{MERGEFIELD OrderNum}{MERGEFIELD PONum}{MERGEFIELD InvoiceNum}{MERGEFIELD
InvoiceDate}{MERGEFIELD AmountDue}{MERGEFIELD OrderNum}{MERGEFIELD
PONum}{MERGEFIELD InvoiceNum}{MERGEFIELD InvoiceDate}{MERGEFIELD
AmountDue}{SET Place2 {MERGEFIELD CustomerNum}}

{If {MERGESEQ} = 1{MERGEFIELD CustomerNum}}
{SET Place 1 {MERGEFIELD CustomerNum}}
{If {Place2} {Place1}


The customer number is up further on the page of the letter and on the Excel
file. The Excel file is sorted in customer order so all the invoices are
together.
  #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 merge more than one line

Did you use Ctrl+F9 to insert each of the field delimiters { }. Under
ToolsOptionsPrint, do you have a check mark in the Field codes box under
the Include with Document section of the dailog.

Take a look at:
http://cornell.veplan.net/article.aspx?&a=3815

or fellow MVP, macropod's tutorial on Catalogue/Directory Mailmerges at:

http://www.wopr.com/cgi-bin/w3t/show...?Number=731107



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

"Pam Edwards" wrote in message
...
I am trying to merge from excel a list of invoices to each customer. I
have
come up with a formula but it is not working, and it prints on the letter
instead of the data. What am I doing wrong.
ORDER PO INVOICE DATE amount
01469 4500263177 255446 8/21/2007 0

{IF {MERGESEQ} = "1" "{MERGEFIELD CustomerNum}" ""}
{SET Place 1 {MERGEFIELD CustomerNum}}
{IF {Place2} {Place1}"
{MERGEFIELD CustomerNum}
{MERGEFIELD OrderNum}{MERGEFIELD PONum}{MERGEFIELD InvoiceNum}{MERGEFIELD
InvoiceDate}{MERGEFIELD AmountDue}""{MERGEFIELD OrderNum}{MERGEFIELD
PONum}{MERGEFIELD InvoiceNum}{MERGEFIELD InvoiceDate}{MERGEFIELD
AmountDue}{SET Place2 {MERGEFIELD CustomerNum}}

{If {MERGESEQ} = "1""{MERGEFIELD CustomerNum}"""}
{SET Place 1 {MERGEFIELD CustomerNum}}
{If {Place2} {Place1}"


The customer number is up further on the page of the letter and on the
Excel
file. The Excel file is sorted in customer order so all the invoices are
together.



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
Merge Multi-line csv David J Mailmerge 4 November 3rd 08 07:01 PM
Line separator in Mail Merge Carlos Nunes Mailmerge 3 June 23rd 08 01:26 PM
New Line in Merge Data Field Tom Bean Mailmerge 1 November 9th 07 02:20 AM
mail merge - different line of address on a separate line lucylou Microsoft Word Help 3 December 12th 06 10:32 AM
How do I merge for labels to get more than the top line? Wilma Pass Chamber Mailmerge 1 March 30th 06 07:20 PM


All times are GMT +1. The time now is 04:29 AM.

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"