cheesiepoof05
Board Regular
- Joined
- Dec 30, 2010
- Messages
- 82
Hello all,
I am working on creating a mail merge document process from Excel to Word that splits based off of a 1 indicator in a certain column. Certain fields need listed all under the same document but change in length for row count. I thought it might be easier to create a short sample of what I'm doing. So the example below would create three different documents. With each one listing the class at the top and then a list of Animals and Colors below it. I appreciate your help. I'm trying to avoid any 3rd party addins if at all possible, but wasn't sure if Excel/Word had this ability inherently. Thanks!
[TABLE="width: 555"]
<tbody>[TR]
[TD]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]File_Name
[/TD]
[TD]New_Record
[/TD]
[TD]Class
[/TD]
[TD]ANIMAL
[/TD]
[TD]COLOR
[/TD]
[/TR]
[TR]
[TD]MAMMALS - 20170419
[/TD]
[TD]1
[/TD]
[TD]MAMMALS
[/TD]
[TD]DOG
[/TD]
[TD]BROWN
[/TD]
[/TR]
[TR]
[TD]MAMMALS - 20170419
[/TD]
[TD][/TD]
[TD]MAMMALS
[/TD]
[TD]MOOSE
[/TD]
[TD]BROWN
[/TD]
[/TR]
[TR]
[TD]MAMMALS - 20170419
[/TD]
[TD][/TD]
[TD]MAMMALS
[/TD]
[TD]MOOSE
[/TD]
[TD]GRAY
[/TD]
[/TR]
[TR]
[TD]MAMMALS - 20170419
[/TD]
[TD][/TD]
[TD]MAMMALS
[/TD]
[TD]RABBIT
[/TD]
[TD]WHITE
[/TD]
[/TR]
[TR]
[TD]MAMMALS - 20170419
[/TD]
[TD][/TD]
[TD]MAMMALS
[/TD]
[TD]ZEBRA
[/TD]
[TD]STRIPE
[/TD]
[/TR]
[TR]
[TD]BIRDS - 20170419
[/TD]
[TD]1
[/TD]
[TD]BIRDS
[/TD]
[TD]CARDINAL
[/TD]
[TD]RED
[/TD]
[/TR]
[TR]
[TD]BIRDS - 20170419
[/TD]
[TD][/TD]
[TD]BIRDS
[/TD]
[TD]BLUE JAY
[/TD]
[TD]BLUE
[/TD]
[/TR]
[TR]
[TD]BIRDS - 20170419
[/TD]
[TD][/TD]
[TD]BIRDS
[/TD]
[TD]WOOD PECKER
[/TD]
[TD]BROWN
[/TD]
[/TR]
[TR]
[TD]REPTILES - 20170419
[/TD]
[TD]1
[/TD]
[TD]REPTILES
[/TD]
[TD]LIZARD
[/TD]
[TD]GREEN
[/TD]
[/TR]
[TR]
[TD]REPTILES - 20170419
[/TD]
[TD][/TD]
[TD]REPTILES
[/TD]
[TD]SNAKE
[/TD]
[TD]YELLOW
[/TD]
[/TR]
[TR]
[TD]REPTILES - 20170419
[/TD]
[TD][/TD]
[TD]REPTILES
[/TD]
[TD]KOMODO
[/TD]
[TD]GREEN
[/TD]
[/TR]
[TR]
[TD]REPTILES - 20170419
[/TD]
[TD][/TD]
[TD]REPTILES
[/TD]
[TD]CHAMELEON
[/TD]
[TD]MIXED
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]
Mail Merge Sample (please note while the list part doesn't appear to be in a grid, I will need it to be.)
For the animal class of «CLASS»
<tbody>
</tbody>
Mail Merge Sample for first document
For the animal class of MAMMALS
<tbody>
</tbody>
I am working on creating a mail merge document process from Excel to Word that splits based off of a 1 indicator in a certain column. Certain fields need listed all under the same document but change in length for row count. I thought it might be easier to create a short sample of what I'm doing. So the example below would create three different documents. With each one listing the class at the top and then a list of Animals and Colors below it. I appreciate your help. I'm trying to avoid any 3rd party addins if at all possible, but wasn't sure if Excel/Word had this ability inherently. Thanks!
[TABLE="width: 555"]
<tbody>[TR]
[TD]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]File_Name
[/TD]
[TD]New_Record
[/TD]
[TD]Class
[/TD]
[TD]ANIMAL
[/TD]
[TD]COLOR
[/TD]
[/TR]
[TR]
[TD]MAMMALS - 20170419
[/TD]
[TD]1
[/TD]
[TD]MAMMALS
[/TD]
[TD]DOG
[/TD]
[TD]BROWN
[/TD]
[/TR]
[TR]
[TD]MAMMALS - 20170419
[/TD]
[TD][/TD]
[TD]MAMMALS
[/TD]
[TD]MOOSE
[/TD]
[TD]BROWN
[/TD]
[/TR]
[TR]
[TD]MAMMALS - 20170419
[/TD]
[TD][/TD]
[TD]MAMMALS
[/TD]
[TD]MOOSE
[/TD]
[TD]GRAY
[/TD]
[/TR]
[TR]
[TD]MAMMALS - 20170419
[/TD]
[TD][/TD]
[TD]MAMMALS
[/TD]
[TD]RABBIT
[/TD]
[TD]WHITE
[/TD]
[/TR]
[TR]
[TD]MAMMALS - 20170419
[/TD]
[TD][/TD]
[TD]MAMMALS
[/TD]
[TD]ZEBRA
[/TD]
[TD]STRIPE
[/TD]
[/TR]
[TR]
[TD]BIRDS - 20170419
[/TD]
[TD]1
[/TD]
[TD]BIRDS
[/TD]
[TD]CARDINAL
[/TD]
[TD]RED
[/TD]
[/TR]
[TR]
[TD]BIRDS - 20170419
[/TD]
[TD][/TD]
[TD]BIRDS
[/TD]
[TD]BLUE JAY
[/TD]
[TD]BLUE
[/TD]
[/TR]
[TR]
[TD]BIRDS - 20170419
[/TD]
[TD][/TD]
[TD]BIRDS
[/TD]
[TD]WOOD PECKER
[/TD]
[TD]BROWN
[/TD]
[/TR]
[TR]
[TD]REPTILES - 20170419
[/TD]
[TD]1
[/TD]
[TD]REPTILES
[/TD]
[TD]LIZARD
[/TD]
[TD]GREEN
[/TD]
[/TR]
[TR]
[TD]REPTILES - 20170419
[/TD]
[TD][/TD]
[TD]REPTILES
[/TD]
[TD]SNAKE
[/TD]
[TD]YELLOW
[/TD]
[/TR]
[TR]
[TD]REPTILES - 20170419
[/TD]
[TD][/TD]
[TD]REPTILES
[/TD]
[TD]KOMODO
[/TD]
[TD]GREEN
[/TD]
[/TR]
[TR]
[TD]REPTILES - 20170419
[/TD]
[TD][/TD]
[TD]REPTILES
[/TD]
[TD]CHAMELEON
[/TD]
[TD]MIXED
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]
Mail Merge Sample (please note while the list part doesn't appear to be in a grid, I will need it to be.)
For the animal class of «CLASS»
«ANIMAL» | «Color» |
<tbody>
</tbody>
Mail Merge Sample for first document
For the animal class of MAMMALS
DOG | Brown |
MOOSE | Brown |
MOOSE | Gray |
RABBIT | White |
ZEBRA | Striped |
<tbody>
</tbody>
Last edited: