Hi,
I'm having trouble getting the following to work for combining multiple records in word from an excel list.
I found a Microsoft KB that explained it for MS office 2000. However, I've found that the following code only works for the first two records in Office 2003. If anyone could be of assistance I would appreciate it.
DATA:
City Employee Sales
Atlanta Smith $3,000
Atlanta Gates $50,000
Atlanta Henderson $10,000
Houston Jones $8,000
Houston Kelley $9,000
Houston Peterson $0
CODE IN WORD:
{ IF { MERGESEQ } = "1" "{ MERGEFIELD City }" "" }<ENTER>
{ SET Place1 { MERGEFIELD City }}<ENTER>
{ If { Place2 } <> { Place1 }"<ENTER>
{ MERGEFIELD City }<ENTER>
<ENTER>
{ MERGEFIELD Employee }{ MERGEFIELD Sales }" "{ MERGEFIELD Employee }{ MERGEFIELD Sales }" }{ SET Place2 { MERGEFIELD City }}<ENTER>
Should produce
Atlanta
Smith $3,000
Gates $50,000
Henderson $10,000
Houston
Jones $8,000
Kelley $9,000
Peterson $0
I'm having trouble getting the following to work for combining multiple records in word from an excel list.
I found a Microsoft KB that explained it for MS office 2000. However, I've found that the following code only works for the first two records in Office 2003. If anyone could be of assistance I would appreciate it.
DATA:
City Employee Sales
Atlanta Smith $3,000
Atlanta Gates $50,000
Atlanta Henderson $10,000
Houston Jones $8,000
Houston Kelley $9,000
Houston Peterson $0
CODE IN WORD:
{ IF { MERGESEQ } = "1" "{ MERGEFIELD City }" "" }<ENTER>
{ SET Place1 { MERGEFIELD City }}<ENTER>
{ If { Place2 } <> { Place1 }"<ENTER>
{ MERGEFIELD City }<ENTER>
<ENTER>
{ MERGEFIELD Employee }{ MERGEFIELD Sales }" "{ MERGEFIELD Employee }{ MERGEFIELD Sales }" }{ SET Place2 { MERGEFIELD City }}<ENTER>
Should produce
Atlanta
Smith $3,000
Gates $50,000
Henderson $10,000
Houston
Jones $8,000
Kelley $9,000
Peterson $0