Guide
Word mail merge to separate PDF files
Updated
Word's mail merge does not make separate PDFs. You need a macro, an add in or another route.
Want separate PDFs made for you?
2 minutes
If you ask, up to three software firms will call or email you.
Want somebody to build the pipeline?
Tell us the volume and what has to come out the other end. Up to three document and data extraction software suppliers will contact you directly.
- Free to use
- No account needed
- Steps from each maker's own guides
- Suppliers only if you ask
- Your details go to up to three document software suppliers, and no one else.
- No spam, ever. Privacy notice
The most searched version of the question, with an unsatisfying answer: the feature is not hidden. Microsoft's mail merge simply does not describe one.
Merge to PDF Tool Index What each route can and cannot do
Question 1
What do you need out of it?
This is the decision that separates a five minute job from a scripting project, and it is worth being precise about before you start.
Email me this result
We will send you these figures and a link back to them. One email, nothing else unless you tick the box.
What Word gives you
Microsoft describes the mechanism plainly. You work on the main document in Word, inserting merge fields for the personalized content, with a data source such as a list, spreadsheet or database associated with it. The merge document generates a personalized version of itself for each name in the data source.
Finish and merge to a new document, and that is what you get: one file with one section per record. Everything after that is yours to arrange.
The three parts of the workaround
Merge to a new document rather than to the printer. Split that document into one file per section. Export each one to PDF with a useful name.
The middle step needs a macro or an add-in. There is no supported route without one, and Microsoft's guidance on mail merge does not contain one.
Naming is the whole value
A folder of files called Document1 to Document400 is no more useful than the single combined PDF you already had, and takes longer to produce.
So the macro has to build the filename from a field: a surname, an account number, an invoice reference. Decide which field before you start, and sanitise it, because real names and references contain characters your filesystem will refuse.
The Excel formatting trap
Word takes the underlying value from Excel, not what Excel displays. A cell showing £1,250.00 can arrive in the merged document as 1250 or as 1249.999999.
The fix is to format inside the merge field rather than in the spreadsheet, using a numeric or date picture switch on the field itself. This is the defect most likely to produce a thousand correct-looking documents with wrong numbers in them, and it is invisible until somebody reads one carefully.
Check the last record, not the first
Everybody tests the first output. Off-by-one errors in the data source range live at the end, and blank final records are common where a spreadsheet has a trailing row.
Open the first, the last and three from the middle. It takes a minute and it catches nearly everything that goes wrong at volume.