A family of Microsoft word processing software products for creating web, email, and print documents.
You don't really need to use a macro and using Mail Merge with a Letters type mailmerge main document will produce what you want.
If you want the merged output to be in the form of individual files in either Word or PDF format, or have the certificates sent to the recipients by email, you can use the facilities on my Merge Tools Add-in to achieve that.
You can download the MERGE TOOLS ADD-IN.zip file from the following page of my One Drive:
Then extract the files from the archive and read
“READ ME – Setting up and using the Merge Tools Add-in.docx
to see how to install and use the various tools.
Using those tools, it is possible to perform the following types of merge that cannot be done with Mail Merge “out-of-the-box”:
- Merge to e-mail messages either with or without attachments, with the documents created by the merge being sent as either Word or PDF attachments or as the body of the e-mail message.
- Merge to individual documents in either Word or PDF format with the filenames being supplied by the data in one of the fields in the data source
- Many to One type merges, which can be used for creating documents such as invoices where there are multiple records in the data source that have common data in one of the fields
- Merging to a document that will include a chart that is unique to each record in the data source
- Merging a document with Content Controls
- Merging a document that contains Legacy FormFields
- Duplex Merges
- Merging to a printer that will collate and staple the output created from each record in the data source.