D
David Rothman
simple application, nothing fancy, but not sure how to do this...
i have an array of names/addresses sorted by group in excel with a field of
0's and 1's acting as a flag denoting whether a new group should start
(bunch of zero's followed by a single 1 to indicate new group)
i also have a table (with form fields) in Word that i want to use to
generate an email such that the table gets repeated (with the info from
excel) for each
for example:
0, john smith, 123 main st, ny, NY
0, mary jones, 235 broadway, pitts, pa
1, bob johnson, 12 state st, phila, pa
0, andy chin, 100 libert st, hoboken,nj
0, ...
0, ...
0, ...
1, ...
0,...
1,..
all i want to do is:
print the form 3 times for group 1 => and then email it
print the form 5 times for next group => and then email it
print the form 2 times for next group => and then email it
max number of people in a group is 10, so i could replicate the table 10
times and use 'next-record-if' (if flag = 0) between each table, but word
doesn't know when to 'stop', so it repeats that last record until 10 forms
are written out.
i really want a loop and some sort of an 'exit' command.
i'm sure this is easy in VB, but is there a way to get a similar result w/o
fully blown VB programming? the Word fields seem to be awfully limiting
when accessed thru the mail-merge toolbar, so i'm hoping there's something
in there that i'm not seeing. thanks.
i have an array of names/addresses sorted by group in excel with a field of
0's and 1's acting as a flag denoting whether a new group should start
(bunch of zero's followed by a single 1 to indicate new group)
i also have a table (with form fields) in Word that i want to use to
generate an email such that the table gets repeated (with the info from
excel) for each
for example:
0, john smith, 123 main st, ny, NY
0, mary jones, 235 broadway, pitts, pa
1, bob johnson, 12 state st, phila, pa
0, andy chin, 100 libert st, hoboken,nj
0, ...
0, ...
0, ...
1, ...
0,...
1,..
all i want to do is:
print the form 3 times for group 1 => and then email it
print the form 5 times for next group => and then email it
print the form 2 times for next group => and then email it
max number of people in a group is 10, so i could replicate the table 10
times and use 'next-record-if' (if flag = 0) between each table, but word
doesn't know when to 'stop', so it repeats that last record until 10 forms
are written out.
i really want a loop and some sort of an 'exit' command.
i'm sure this is easy in VB, but is there a way to get a similar result w/o
fully blown VB programming? the Word fields seem to be awfully limiting
when accessed thru the mail-merge toolbar, so i'm hoping there's something
in there that i'm not seeing. thanks.