Loop in Word

N

nelson

Wondering if there is a way of using a loop command (goto, do until, etc) in
a Word document? I would like to print a letter to a contact, and include a
number of rows of info for the customer (each representing a contact that the
customer has submitted to us). I currently print a letter for each customer
contact, but want to combine all letters into a single letter, listing all
previous customer contacts.

So, instead of sending 5 letters with info on the 5 individual contacts, we
would like to send one letter with info on the 5 individual contacts.

Thanks for the help.
 
S

Suzanne S. Barnhill

I'll let Cindy know; perhaps she can fix it or otherwise help.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

nelson said:
Thanks, Suzanne. Your post kind of gets me started. However, the link to
the sample file (Compound.EXE) that is referenced in the article is no
longer
present. So, an example (for me, anyway) would be very helpful.

Thanks.
 
N

nelson

Doug -

I am having difficulty with the code that you suggested (from Cornell).
When I use this:

{ IF { MERGESEQ } = 1 "
{Mergefield "Employee_FMLName" }
{Mergefield "Employee_Address1" }
" "No Name & Address"}

I get only the word MERGESEQ to print. The fields Employee_FMLName &
Employee_Address1 are valid and print - if I leave off the MERGESEQ statement.

I cannot figure out what I'm missing.

Thanks,
 
R

Robert M. Franz (RMF)

Hello Nelson
{ IF { MERGESEQ } = 1 "
{Mergefield "Employee_FMLName" }
{Mergefield "Employee_Address1" }
" "No Name & Address"}

I get only the word MERGESEQ to print. The fields Employee_FMLName &
Employee_Address1 are valid and print - if I leave off the MERGESEQ statement.

have you inserted all curly brackets via CTRL-F9?

HTH
Robert
 
N

nelson

Robert -

Yes, I used all of the curley brackets (using CTRL-F9). I have since found
that if I run the MERGESEQ command WITHOUT spaces between the curley brackets
on both sides of MERGESEQ, it seems to work OK. So, I'm going to be seeing
if that will allow me to continue. Don't know what to attribute that to?

Example: { MERGESEQ } doesn't seem to work; {MERGESEQ} does seem to work.

Thanks,
 

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