VBA code to import into a .docm
document so that mail-marge handle groups of multivalued field.
Take a CSV file (or anything usable in Word mail-merge) with new-line separated values :
Story | Characters_FirstName | Characters_Surname |
---|---|---|
Madame Bovary | Emma Charles Rodolphe Leon |
Bovary Bovary Boulanger Dupuis |
Matter of Britain | Arthur Merlin Guinevere Lancelot |
Pendragon Inchanter Du Lac |
The story «Story»
comprises the following characters :
First Name | Surname |
---|---|
«Characters_FirstName» |
«Characters_Surname» |
The story Madame Bovary comprises the following characters :
First Name | Surname |
---|---|
Emma Charles Rodolphe Leon |
Bovary Bovary Boulanger Dupuis |
The story Matter of Britain comprises the following characters :
First Name | Surname |
---|---|
Arthur Merlin Guinevere Lancelot |
Pendragon Inchanter Du Lac |
The story Madame Bovary comprises the following characters :
First Name | Surname |
---|---|
Emma | Bovary |
Charles | Bovary |
Rodolphe | Boulanger |
Leon | Dupuis |
The story Matter of Britain comprises the following characters :
First Name | Surname |
---|---|
Arthur | Pendragon |
Merlin | Inchanter |
Guinevere | |
Lancelot | Du Lac |