scotsrule08
New Member
- Joined
- Jun 21, 2018
- Messages
- 45
Good evening,
I am needing some VBA to select the correct word merge template based on a cell value. I receive a spreadsheet with all of the data to perform a word merge. Not every row will be the same template. I need the template used to be determined by the value in column "A"
For example If the cell says "Invoice" use the template named c:\desktop\invoice2019.doc
if the cell says "RMA" use the template c:\desktop\RMAform.doc
etc. Then perform the word merge.
<tbody>
</tbody>
Thank you for any assistance!
I am needing some VBA to select the correct word merge template based on a cell value. I receive a spreadsheet with all of the data to perform a word merge. Not every row will be the same template. I need the template used to be determined by the value in column "A"
For example If the cell says "Invoice" use the template named c:\desktop\invoice2019.doc
if the cell says "RMA" use the template c:\desktop\RMAform.doc
etc. Then perform the word merge.
[FONT="]Template[/FONT] | [FONT="]Price[/FONT] | [FONT="]Item[/FONT] |
[FONT="]Invoice[/FONT] | [FONT="]2[/FONT] | [FONT="]BANANA[/FONT] |
[FONT="]RMA[/FONT] | [FONT="]342[/FONT] | [FONT="]POTATO[/FONT] |
[FONT="]Congratulations[/FONT] | [FONT="]32[/FONT] | [FONT="]CUCUMBER[/FONT] |
[FONT="]RMA[/FONT] | [FONT="]4[/FONT] | [FONT="]SALAD[/FONT] |
[FONT="]Congratulations[/FONT] | [FONT="]234[/FONT] | [FONT="]APPLE[/FONT] |
[FONT="]Invoice[/FONT] | [FONT="]32[/FONT] | [FONT="] STAR FRUIT[/FONT] |
[FONT="]RMA[/FONT] | [FONT="]28[/FONT] | [FONT="]CRUTON[/FONT] |
<tbody>
</tbody>
Thank you for any assistance!