How to create PDF files using mail merge

DenisCooper Posted messages 19 Status Member -  
 Emilie -
Hello,

From an Excel table, I create a Word file of n pages containing n invoices. Then I split this file into n files that I save in PDF format. This second step is quite long. Is it possible for my mail merge to automatically create n files (if possible directly in PDF) giving them a name that I have predefined and placed in a column of the Excel file containing other information?
I found posts on the subject but they never matched my needs because they required going through Outlook. Some mention VBA macros; I know what they are, but I don't master them. Thank you.
Have a nice day.

7 answers

m@rina Posted messages 27378 Registration date   Status Moderator Last intervention   11 561
 
I created a macro that does the job, namely merging directly to PDF files, using a field from the database as the file name. I put it here:
https://www.faqword.com/index.php/word/publipostage/1075-publipostage-directement-vers-fichiers-pdf

m@rina

--
At least half of the users ask a question and never come back. Sometimes I wonder why I keep answering...
4
DenisCooper Posted messages 19 Status Member
 
Hello, thank you for this quick response. I will give it a try, even though I've never used macros! There’s no reason I shouldn’t be able to do it. Have a great day.
0
AsoK
 
You're a monster! Thank youuu :D
0
Emilie
 

Hello m@rina, I was using this macro without any issues but in my new file I have a runtime error 5631. Can you tell me how to fix it? Is it because my letters are 2 pages long? I want to clarify that my mail merge works outside of the macro. Thank you in advance.

0