Everything in this video is great: the macro, the clear explanation and the details of the code, the possibility to download the files. One of the best videos ever. Thank you so much for this pearl" 👍👏👏👏👏
This is, BY FAR, the best thing I've ever found on UA-cam in the last fifteen years. You are amazing! I had to mail merge over 1200 documents, each with a unique file name based on Student ID. I don't know how I can thank you enough. Mate, seriously! Cheers :)
Your comment is thanks enough. I am really glad this helped you, and most importantly that it saved you time. Now use that time saved to spend time with the family or go out for a drink on me :). Thanks for your comment.
I was searching for this process for a long time. When preparing service documents for equipment in the same models, even though mail merged and split into individual documents, I had to rename the PDF files one by one according to their serial numbers, which took a long time to open and check individually (had to repeat every month for different equipment lists). Thanks to your video, I could save my time from hours of hard work into minutes of clicking. Thank you soo much for making the life easier by bringing up this valuable video. Highly appriciate your effort and will not miss to share this with my friends as well. Thanks again.
Thank you so much for posting this! I had a file with 50 letters and it merged into one big one. I did not want to spend hours separating. You're awesome for sharing your knowledge.
You're officially my new hero! I was trying to merge a document into individual files and all of the other video tutorials caused my images to disappear and the document spacing to get thrown way out of wack. This was absolutely PERFECT for my needs. And THANK YOU for making the code available for us to download.
That is great to hear. I am really glad this tutorial helped. Thanks for your comment. Just to let you know, i also have a tutorial on merging images. Particularly great for certificates.
THANK YOU so much. I knew this was possible but most suggestions online regarding splitting mail merges are to download a plug-in which I can’t always do as a contractor !!! You rock.
Thank you so much. I had a little difficulty until I realized that I hade to keep the first 4 fields in the spreadsheet as you had them, then add my stuff after. Worked perfectly and loved the screen tutorials
Thank you! I'm new to Mail Merge and I needed to create separate PDFs with the recipient's name in the file name. This video is perfect for someone who has no coding background. Your instruction is excellent! In case this is helpful for others: It took me perhaps two hours to go through the video, take notes, and prepare my own Word doc and Excel sheet to practice. When I cut and pasted the code from the .txt file, the process would not Run. Rather, I received a Syntax error. Again, I don't code, so I didn't know how to fix that. Next I deleted that Module (as he does in the video) and imported the the .bas file. When I selected Run, it worked! Holy cannoli! It worked! I'll be using this often. One million thank yous for creating this excellent video and sharing the files.
Thankyou for taking the time to leave your feedback. I am happy you found this usefull. I will look into the text ersion of the code to see what may have cause the syntax error. I have another mothid for breaking up a pdf in to separate files which is not as good as this one but works and is great if you have been given a merged pdf document. ua-cam.com/video/MsUpz6docZA/v-deo.html
THANK YOU A THOUSAND TIMES I had a 500 pages file to split into each page for each employee and our IT block sites like "I Love PDF" your macro worked like a charm I just renamed my sheet database to "MergeData" and added the three columns
This is amazing... I used mailmerge so many times in the years past, and it never occurred to me to look for a solution to save it in separate files... and for a big project I'm starting, this will save SO MUCH TIME, thanks! Very well explained, on top of everything!
@@JonnieDard sorry i missed your comment. Header and footers are not an issue. If you add the header and footer to your master document it will be included in all merged documents.
I found this after a few other attempts to accomplish this functionality which didn't work, however yours worked immediately and without issue, absolute life saver! Thanks mate.
I can't thank you enough for this video. I'm glad I watched until the end because I only need .docx files and you made it very easy to understand how to edit the code. I have 3623 files to save, so THANK YOU THANK YOU THANK YOU!
Thanks for your comment. I am happy you found this useful. This is definately a process which is becoming a more popular task for schools and small businesses.
Thank you so much for this amazing and helpful video! Your explanation of the mail merge process and converting files into personalized PDFs for each record was clear and detailed. Your presentation style and organization were excellent . I truly appreciate your effort in preparing and sharing this professional content with us. I will definitely recommend this video to others who need to learn this skill. Thanks again!
I have been searching for this automation for ages! Thank you very much for explaining things in such detail that is so easy to understand and implement! Now I need to figure out how to email each file to the email addresses on the same data source! 😅
This is so helpful and is saving me HOURS of work. Thank you for the hard work you put in and the easy-to-follow instructions! If you ever have the time, I would love to see how to add to the macro the ability to add a sensitivity label to each document.
You are my new hero too! Thank you so much! It perfectly resolved our technical issue how to generate individual files with ID in the file name. YOU ARE THE BEST!
This is totally awesome I have been searching for the right video for this, and Yours is the BEST so far. It really helps me a lot in my reports as every month I have to generate a 5000 training certificate and have to rename them .... what a mess.
@@KelliHarrington that makes sense. Actually a good idea to work in batches even if you could merge all in one go. It is a fail safe if something goes wrong. God job
Thx from Germany. Big ups. This code goes so hard. I am trying to make it more general so that basically anyone can use it without having to make folders and maybe a gui so you can type in how files can have individual names :) Anyways big help. I am super happy about this.
Thank you your feedback. Your project sounds great. Please let me know how you get on and please share your work with us if you get it working. It sounds awesome. I would be happy to make a tutorial on it (and of course reference you ) if you get it working. It will help a lot of people.
@@paphitisn Right now I just got it to save more data fields. I am having an issue with spaces and parenthesis. ... DataFields("Nam new").Value... If I replace the space with underscore it works but I also have ... DataFields("Nam (new)").Value... Even if I replace the underscore it still throws a runtime error. Also amazing documentation. I am used to look at completly wild and uncomented code so this is a blessing. I am not new to VBA but it is has been a while since I used it :)
@@paphitisnIn my case, on a daily basis i use your method and keep on adding the data in the same file order wise, so how to comment off the previous data so that only new loaded data should merg.
@shivagunti add another column in your data. It could be a date or a simple incrementing number. When you add the next data add the next numbe so if the previous number was 15 then all the new records will have the number 16. Before you merge filter the data on the records which equal 16 in that column. Then merge. Or use a date field and filter on date added. This will allow you to also track when records were added
Excelent solution! Great video. You are great. A few questions, though. Can I add as many fields as I need to in the sheet? Can I create more than one document just with different fields from the same Excelsheet?
So easy to follow. Would you be able to do a video or let me know how the documents could be saved in their own personal folder? So using your example have the merged paper saved in the students individual file you’ve created
Never thought there would be a need to generate folders for each file but yes it can be done and i will probably make a video soon. However if you want to have a crack a it here is how i would do it. In a separate column in the Excel file use text manipulation to ad the letters md followed by a space and then the unique file name, so it would look something like this without the quotes "md Nick_Paphitis" Duplicate this for all the entries. Copy this data and paste in a notepad. Rename the extension from .txt to .bat. Place the .bat file in the folder where you will export and double click on it. This will now generate all the folders. Now go back to the Excel file. You can delete the column you made. For the columns WordDocs and PdfDocs delete the location paths and create the path with the unique folder paths. Now each entry has a unique path instead of the same one and those folders already exist as you already generated them. hope that make sense.
Your tutorial is excellent! I need your advice and guidance: If the Excel source file includes an additional heading titled "Sports Interest" (e.g., Chess, Tennis, etc.), is it possible tp modify the code so that it saves a Word document/PDF containing all the pages of records for members with the same sports interest? Thank you.
Yes. If you have the fields in the spreadsheet then form the Mail merge in word you can filter the records and export only the records you want. Have a look at this and it will explain the process: ua-cam.com/video/taeWuL9VH18/v-deo.htmlsi=_Qo0lHwj9xJ5e1c5
Great Stuff, especially the VB code. My imported code stopped - and I worked out I had duplicate entries in the FileName field. In my large file, I ran the conditional format duplicate feature in the MS Excel and found the problems. Thanks for the work and clues.
Thank you very much! This is very useful, and I am able to add new field named OUTPUT and only export docx when I put “Y” under the field. However the generation is a bit slow and I am wondering is there any trick to improve the speed? I am export around 300 documents, around 8 pages long.
Well done for modifying it to improve work efficiency. As for the speed, it depends on your device, amount of RAM and the length of the document as the documents are kept open until the process finishes. You may find it gets slower as it progresses if you have a lot of documents. I would suggest add another field so that you can add a number like 1, 2, 3 etc. add the number 1 for the first 50 records, 2 for the next 50 and so on. This will allow you to filter on this field and only merge 50 documents at a time. This should improve the speed as you will only be merging 50 records at a time ana you will avoid the long delays when you are on the 100th or 20th record. Let me know if this works for you and improves the speed for you.
Good job! Really helpfull! I modified it a little bit though. The only thing that I changed that I added is a window that asks me to enter starting and ending record numbers cause I use list that I update every day and I don't want it to start from the first line every time
Good job. Interesting add. I normally have a column with and incrementing number and use this column to filter the recipient list (from word mailings edit recipient list). It adds a bit more flexibility than a starting point. You could have a date field and filter on date after. Thanks for you comment.
Excellent work Nicos. This process created an incredible productivity improvement for me at work. Thank you so much. Is it possible to do this through excel only?
I am glad this helped you. Thanks for your comment. Excel provides only the data source, it does not do mail merge. You can take Excel out of the process and use a different data source like a database or csv file but not merge through Excel.
If you put an index infront of the name so that when sorted they are in the right order then yes. Instead of the name Nick use A1_Nick then the next name A2_ and so on. This way if you sort the files by file name they will be in the same order.
Awesome. Do you have a process similar to this to send merge emails with 2 attachments? Like, with this you create the documentsfor say 50 students, no you need to send them.
Hi there! Thank you for your video. I'm running into an issue with the module and I've checked and rechecked the file names and paths on each of my documents and there are no issues. I even tried deleting the Word exportation section of the code to see if it would just run the PDFs, but unfortunately it ran with the same error. Any thoughts on how to fix this? Thanks!
Without knowing what issue you are running into i will assume you have tripplechecked evreything. If this is the case then the issue maybe the location where your folder is. Do not use a synced cloud folder like dropbox or onedrive. Also dont use c:\ as you may need elecated privileges to write here. Use a folder on the desktop. Make sure to add the new path in the data source. Let me know how it goes.
Our desktop is on the c:\ folder, so I tried to move it over to my personal MacBook (and adjusted the path names), and I'm getting the error around the "ExportAsFixedFormat" command. Any thoughts? @@paphitisn
Thankyou so much for this, do you have a video that explains how I can now send the PDFs to the respective candidates/recipients? i feel like this should be easy but I cant get my head around it.
there is no native method from Word. However you can purchase the Mail Merge Toolkit which is a word add-in and will allow you to send personalized attachments via mail merge, which is what you want to do.
Everything in this video is great: the macro, the clear explanation and the details of the code, the possibility to download the files.
One of the best videos ever.
Thank you so much for this pearl" 👍👏👏👏👏
Thanks for your comment. I am glad you found this usefull.
This is, BY FAR, the best thing I've ever found on UA-cam in the last fifteen years. You are amazing! I had to mail merge over 1200 documents, each with a unique file name based on Student ID. I don't know how I can thank you enough. Mate, seriously! Cheers :)
Your comment is thanks enough. I am really glad this helped you, and most importantly that it saved you time. Now use that time saved to spend time with the family or go out for a drink on me :).
Thanks for your comment.
@@paphitisn thanks 😁👍
Amazing video, but even more amazing instructions, in detail, and with the possibility to skip to the part I need. Keep up this extraordinary work!
Really glad you found this usefull. Thanks for your comment.
Sir you just saved my life!! I have 700 students to personalize a pdf file for and this just was perfect !!!!
Awesome, i am so glad you found this and saved yourself a heap of time. Thanks for the comment.
I was searching for this process for a long time. When preparing service documents for equipment in the same models, even though mail merged and split into individual documents, I had to rename the PDF files one by one according to their serial numbers, which took a long time to open and check individually (had to repeat every month for different equipment lists).
Thanks to your video, I could save my time from hours of hard work into minutes of clicking. Thank you soo much for making the life easier by bringing up this valuable video. Highly appriciate your effort and will not miss to share this with my friends as well.
Thanks again.
Really glad this tutorial has helped save you work hours. Thanks for your comment and for sharing it with others.
@@paphitisn ❤️😇
Thank you so much for posting this! I had a file with 50 letters and it merged into one big one. I did not want to spend hours separating. You're awesome for sharing your knowledge.
So glad this helped you. Thanks for your comment
You're officially my new hero! I was trying to merge a document into individual files and all of the other video tutorials caused my images to disappear and the document spacing to get thrown way out of wack. This was absolutely PERFECT for my needs. And THANK YOU for making the code available for us to download.
That is great to hear. I am really glad this tutorial helped. Thanks for your comment. Just to let you know, i also have a tutorial on merging images. Particularly great for certificates.
THANK YOU so much. I knew this was possible but most suggestions online regarding splitting mail merges are to download a plug-in which I can’t always do as a contractor !!! You rock.
Really glad this has helped you. thanks for your comment.
Thank you so much. I had a little difficulty until I realized that I hade to keep the first 4 fields in the spreadsheet as you had them, then add my stuff after.
Worked perfectly and loved the screen tutorials
That's fantastic. I am glad it worked for you. Thanks for coming back to leave your feedback. I am sure it will help others
Thank you. That's what I needed.
Omg your comments saved my life!!! Thank you both!!
You have saved me hours of typing and saving. THANK YOU for this video. Very easy to follow and worked like a charm
i am so happy this helped you. it really is a timesaver. Thanks for you comment.
Thank you! I'm new to Mail Merge and I needed to create separate PDFs with the recipient's name in the file name. This video is perfect for someone who has no coding background. Your instruction is excellent! In case this is helpful for others: It took me perhaps two hours to go through the video, take notes, and prepare my own Word doc and Excel sheet to practice. When I cut and pasted the code from the .txt file, the process would not Run. Rather, I received a Syntax error. Again, I don't code, so I didn't know how to fix that. Next I deleted that Module (as he does in the video) and imported the the .bas file. When I selected Run, it worked! Holy cannoli! It worked! I'll be using this often. One million thank yous for creating this excellent video and sharing the files.
Thankyou for taking the time to leave your feedback. I am happy you found this usefull. I will look into the text ersion of the code to see what may have cause the syntax error. I have another mothid for breaking up a pdf in to separate files which is not as good as this one but works and is great if you have been given a merged pdf document.
ua-cam.com/video/MsUpz6docZA/v-deo.html
THANK YOU A THOUSAND TIMES
I had a 500 pages file to split into each page for each employee and our IT block sites like "I Love PDF"
your macro worked like a charm
I just renamed my sheet database to "MergeData" and added the three columns
That is really fantastic to hear. I am glad this has saved you time and effort. Thank you for your comment.
This is amazing... I used mailmerge so many times in the years past, and it never occurred to me to look for a solution to save it in separate files... and for a big project I'm starting, this will save SO MUCH TIME, thanks! Very well explained, on top of everything!
Really glad you found it useful. Thanks for coming back and leaving your feedback
Fantastic Nicos. This is really helpful. But I’m wondering how I can get this done when there a header with a logo and a footer ?
@@JonnieDard sorry i missed your comment. Header and footers are not an issue. If you add the header and footer to your master document it will be included in all merged documents.
BRILLIANT!!! And no blank page at the end of the word document!! Thank you so much!!!!
I knew you would like this tutorial. Glad it worked out for you.
I found this after a few other attempts to accomplish this functionality which didn't work, however yours worked immediately and without issue, absolute life saver! Thanks mate.
That's reallybgreat to hear. I am glad it worked for you. Thanks for your comment
Thanks, Nicos, what a time saver and really simplified explanation of the whole merging / save file process
Hi Peter. I am glad you found this useful a d easy to follow. Thanks for your comment.
I can't believe this was so easy! Thank you so much for sharing this and explaining it so clearly, you have just solved a really big problem for me :)
Really glad to hear that it has helped solve a problem for you thanks for your comment.
Amazing! Saved me hours and hours of editing files one by one! Thank you!
That's great to hear. Thanks for your comment
Thank you so much for providing this video! This saved me so many hours of creating individual PDF documents.
I am glad this helped you. Thanks for your comment.
THANK YOU for taking the time to put this together. This helped me tackle a project, saving countless hours. Cheers!
Thanks for you comment. I am glad this was useful for you and that it saved you some work hours. Hope you used those hours saved wisely :)
I can't thank you enough for this video. I'm glad I watched until the end because I only need .docx files and you made it very easy to understand how to edit the code. I have 3623 files to save, so THANK YOU THANK YOU THANK YOU!
Hats off guru ji........from India
Really i experienced my schooling days by your explanation. Its crystal clear.
Thank you for your kind words. I am glad my tutorials were useful to you.
Genius, exactly what I was looking for and now I actually know how it works
I am glad this heled you. Thanks for your comment.
This is unbelievable Nicos is a star
Thanks for your comment. I am happy you found this useful. This is definately a process which is becoming a more popular task for schools and small businesses.
Thank you so much for this amazing and helpful video! Your explanation of the mail merge process and converting files into personalized PDFs for each record was clear and detailed. Your presentation style and organization were excellent . I truly appreciate your effort in preparing and sharing this professional content with us. I will definitely recommend this video to others who need to learn this skill. Thanks again!
I am really glad you found this usefull. Thank you for your comment.
My man you are awesome . You have no idea how much time you have saved me .
I am happy it helped. Thanks for your feedback
Dear Nicos thank you so much for the the code and the tutorial, this has saved me so many hours
I am very happy to hear that. Thanks for your comment
Thank you very much for the excellent presentation, informative explanations, and valuable module. Your efforts are greatly appreciated!🙏
you are welcome. Thanks for your comment
WOW!!! You are my new hero. Thank you SO much for creating and posting this video. I don't actually care HOW it works, just that it DOES work!!!!! :)
Haha, i am glad you found this usefull. Thanks for your comment.
I have been searching for this automation for ages! Thank you very much for explaining things in such detail that is so easy to understand and implement!
Now I need to figure out how to email each file to the email addresses on the same data source! 😅
You an use Mail Merge Toolkit addin. It is free and easy to use.
Good evening you know where i found the free Mail Merge Toolkit addin, because all that i found is not free@@paphitisn
This was awesome, thank you so much for the step by step guide and the macro. Saved me so much time!
Glad to hear it. Thanks for your comment.
This is so helpful and is saving me HOURS of work. Thank you for the hard work you put in and the easy-to-follow instructions! If you ever have the time, I would love to see how to add to the macro the ability to add a sensitivity label to each document.
From what i know, that requires an A5/E5 license which i do not have.
I am glad the this has saved you hours of work. Thanks for your comment.
Amazing video, thank you for showing every detail!
You are more than welcome. Thanks for your comment.
Amazinglys detailed presentation!!! So kind of you to share your work with us!! thanks is not enough!!!
Really glad this helped you. Thanks for your comment.
Wow! Thank you so much for this tutorial! Well organized and perfectly explained, great job!
You are my new hero too! Thank you so much! It perfectly resolved our technical issue how to generate individual files with ID in the file name. YOU ARE THE BEST!
I am so glad it helped. Thanks for your comment.
Well done Nicos!
This is a very helpful trick and will save my a lot of time!
Awesome. I am glad you found this tutorial usefull.
hands down neatest solution
thanks for your comment. glad you found this useful
This is an incredible tool. Really appreciate you explaining the code as well to customize it as needed. Saved me hours of work, thanks a lot!
Thanks for the feedback. Really glad it helped you out
This is totally awesome I have been searching for the right video for this, and Yours is the BEST so far. It really helps me a lot in my reports as every month I have to generate a 5000 training certificate and have to rename them .... what a mess.
That is awesome. I am glad it helped. Thanks for the feedback
Much appreciated Nicos, very useful info. Worked on my first try!
That is fantastic. Well done. Glad you found it useful. Thanks for the comment.
very much appreciated! Excellent work and super complete! Love it and it helped me out so much. Thank you very much. Greetings from Belgium.
That is great to hear. I am glad it helped you thanks for your comment.
Thank a lot for the detailed explanation and tutorial! Much appreciated! This is really helpful!
You are welcome. Thanks for your comment
So helpful, this video has saved me hours!
I am glad. thanks for your comment
Thank you so much for this tutorial & the macro file. You saved me so much time & headache - and I learned a lot!
I am glad this was useful for you. Most of all i am glad you learnt a lot :) Thanks for your comment.
This is great! work like a charm. Thank you for sharing!
Glad it was useful for you. Thanks for the comment
This is very helpful. Thank you so much! :)
I am glad. Thanks for your comment
Thanks For your help - I already was ready to start doing it by myself!
I am glad it helped
Teacher with Capital T! Excellent lesson
Thank you. I am glad you found this usefull. From the name intake it you are feom Greece, Crete?
Thank you very much for your sharing. It is very very useful, save so much time.
I am glad it helped. Thanks for your comment
Thank you for this and the explanation of the macro! This is exactly what I was looking for!
That's great. Glad you found it usefull. Thanks for the feedback
Awesome.... just what I was looking for
glad to hear it. Thanks for the comment
Brilliant , love this video. Hats off !!!
Thanks, glad you liked it. Lersonally i used it today to generate around 100 student certificates. Even merged their photo in the document.
Awesome video! I have to send 800 letters so this was PERFECT! Great instruction and worked wonderfully! Thank you!
That is awesome. Were you able to merge all 800 in one go?
If yes then you must have quite a bit of RAM capacity. Thnks for the feedback.
@@paphitisn No, I did it in batches but still HUGE time savings. Much appreciated!
@@KelliHarrington that makes sense. Actually a good idea to work in batches even if you could merge all in one go. It is a fail safe if something goes wrong. God job
This is perfect!! Thank you very much for sharing your knowledge!
You are welcome. I am glad you found it useful
You are a life saver!!!!!!
I am glad this helped you. Sounds like you got it all working. Thanks for your comment
my dude, this is awesome. thanks!
Glad you found it useful. Thanks for your comment
Thanks for this! It's outrageous that this hasn't been built into Office yet
Totally agree with you. This should be built into the merge feature of Word.
Excellent video and explanation. Thank you!!
I am glad it helped. Thanks for the comment
A life saving video! thank you so much for simplify my life :)
I am glad it helped. Thanks for the feedback.
this is great explanation and very happy to see it
Thanks for the feedback
Thx from Germany. Big ups. This code goes so hard. I am trying to make it more general so that basically anyone can use it without having to make folders and maybe a gui so you can type in how files can have individual names :) Anyways big help. I am super happy about this.
Thank you your feedback. Your project sounds great. Please let me know how you get on and please share your work with us if you get it working. It sounds awesome. I would be happy to make a tutorial on it (and of course reference you ) if you get it working. It will help a lot of people.
@@paphitisn Right now I just got it to save more data fields. I am having an issue with spaces and parenthesis.
... DataFields("Nam new").Value... If I replace the space with underscore it works but I also have
... DataFields("Nam (new)").Value...
Even if I replace the underscore it still throws a runtime error.
Also amazing documentation. I am used to look at completly wild and uncomented code so this is a blessing. I am not new to VBA but it is has been a while since I used it :)
Oh, figured it out. It just escapes it automatically. I just removed the parenthesis and it worked. lol :)
@@loiiblank4699 Great :)
Thank You! AND thanks for commenting your code so it was easy to modify just to export pdf's or word docs.
I am glad you found this usefull. You are welcome for the comments 😀
Thanks for your comment.
This is extremely useful!!! THANK YOU!!!
I am glad to hear it. Thanks for your comment.
Thank you so much for this! Your instructions were super clear and easy to follow, and it worked brilliantly. Much appreciated!
That's great. Glad i helped and that it worked out for you.
Thank YOU! This was amazing and so helpful!
Thanks for your comment. I am glad this helped
Wow! Astounding. Thanks a ton for making this video for me in advance.
I am glad you found this useful. Thanks for your comment.
@@paphitisnIn my case, on a daily basis i use your method and keep on adding the data in the same file order wise, so how to comment off the previous data so that only new loaded data should merg.
@shivagunti add another column in your data. It could be a date or a simple incrementing number. When you add the next data add the next numbe so if the previous number was 15 then all the new records will have the number 16. Before you merge filter the data on the records which equal 16 in that column. Then merge. Or use a date field and filter on date added. This will allow you to also track when records were added
I LOVE THIS MAN! Thank you so very much!
You are most welcome. Thanks for the feedback, it is appreciated.
Thank you so much Sir for this excellent presentation, it has really benefited me a lot.
Can't thank you enough for this video.
You just did :)
Thank you for your comment.
Be blessed so helpful, Nice instructions
@@GideonMacks thank you for your comment. I am glad this was helpful.
Fantastic! I had to use a local folder though as One Drive didn't work. Might have to do with the government school One Drive controls though.
Really gkad this worked out for you. Cloud drives are an issue. Thanks for your comment.
This is amazing! Thanks for sharing.
Thanks for your comment. I am glad this was useful for you.
Thank you so much, you saved my time.
I am glad it helped.
Wow!!! what an amazing help! thank you very much!!!
I am glad you found this helpful. Thanks for the feedback
many many thanks sir this information is very very useful for me. thanks
You are very welcome. I am glad you found it useful
Excelent solution! Great video. You are great. A few questions, though. Can I add as many fields as I need to in the sheet? Can I create more than one document just with different fields from the same Excelsheet?
Yes and yes to both your questions.
I.was a le to use it and run it. This is very helpful. Thank you so much! 😊
Awesome. Thanks for the feedback.
Thank you for the Information
So easy to follow. Would you be able to do a video or let me know how the documents could be saved in their own personal folder? So using your example have the merged paper saved in the students individual file you’ve created
Never thought there would be a need to generate folders for each file but yes it can be done and i will probably make a video soon. However if you want to have a crack a it here is how i would do it.
In a separate column in the Excel file use text manipulation to ad the letters md followed by a space and then the unique file name, so it would look something like this without the quotes "md Nick_Paphitis"
Duplicate this for all the entries. Copy this data and paste in a notepad. Rename the extension from .txt to .bat. Place the .bat file in the folder where you will export and double click on it. This will now generate all the folders.
Now go back to the Excel file. You can delete the column you made. For the columns WordDocs and PdfDocs delete the location paths and create the path with the unique folder paths. Now each entry has a unique path instead of the same one and those folders already exist as you already generated them.
hope that make sense.
Great video. Thank you.
Thanks for the comment
Works perfectly. Thank you!
That is great to hear. thanks for your comment.
This is amazing thank you!!
You are welcome. Thanks for your comment
Thanks it was very helpful… you explained it so well
Thanks for your feedback
Your tutorial is excellent! I need your advice and guidance: If the Excel source file includes an additional heading titled "Sports Interest" (e.g., Chess, Tennis, etc.), is it possible tp modify the code so that it saves a Word document/PDF containing all the pages of records for members with the same sports interest? Thank you.
Yes. If you have the fields in the spreadsheet then form the Mail merge in word you can filter the records and export only the records you want. Have a look at this and it will explain the process:
ua-cam.com/video/taeWuL9VH18/v-deo.htmlsi=_Qo0lHwj9xJ5e1c5
Great Stuff, especially the VB code. My imported code stopped - and I worked out I had duplicate entries in the FileName field. In my large file, I ran the conditional format duplicate feature in the MS Excel and found the problems. Thanks for the work and clues.
Awesome. Nice work with the use of conditional format to find the duplicates.
Thank you very much! This is very useful, and I am able to add new field named OUTPUT and only export docx when I put “Y” under the field. However the generation is a bit slow and I am wondering is there any trick to improve the speed? I am export around 300 documents, around 8 pages long.
Well done for modifying it to improve work efficiency. As for the speed, it depends on your device, amount of RAM and the length of the document as the documents are kept open until the process finishes. You may find it gets slower as it progresses if you have a lot of documents. I would suggest add another field so that you can add a number like 1, 2, 3 etc. add the number 1 for the first 50 records, 2 for the next 50 and so on. This will allow you to filter on this field and only merge 50 documents at a time. This should improve the speed as you will only be merging 50 records at a time ana you will avoid the long delays when you are on the 100th or 20th record. Let me know if this works for you and improves the speed for you.
Good job! Really helpfull! I modified it a little bit though. The only thing that I changed that I added is a window that asks me to enter starting and ending record numbers cause I use list that I update every day and I don't want it to start from the first line every time
Good job. Interesting add. I normally have a column with and incrementing number and use this column to filter the recipient list (from word mailings edit recipient list). It adds a bit more flexibility than a starting point. You could have a date field and filter on date after.
Thanks for you comment.
Thank you so much!!!! This helped me a lot!!!
Fantastic video 😃 thank you sir!
You are welcome.
Thank you very much!
You are welcome. Glad it helped
Excellent work Nicos. This process created an incredible productivity improvement for me at work. Thank you so much. Is it possible to do this through excel only?
I am glad this helped you. Thanks for your comment. Excel provides only the data source, it does not do mail merge. You can take Excel out of the process and use a different data source like a database or csv file but not merge through Excel.
Amazing guideline. Is there a way when the documents are saved on the pdf folder they save in the exact same order as the excel names?
If you put an index infront of the name so that when sorted they are in the right order then yes. Instead of the name Nick use A1_Nick then the next name A2_ and so on. This way if you sort the files by file name they will be in the same order.
Brilliant!!
Glad you found this useful. Thanks for your comment
Awesome. Do you have a process similar to this to send merge emails with 2 attachments? Like, with this you create the documentsfor say 50 students, no you need to send them.
Great tutorial. I was wondering how I can copy the macro?
You can find a link to download the macro and the code in the description.
Hi there! Thank you for your video. I'm running into an issue with the module and I've checked and rechecked the file names and paths on each of my documents and there are no issues. I even tried deleting the Word exportation section of the code to see if it would just run the PDFs, but unfortunately it ran with the same error. Any thoughts on how to fix this? Thanks!
Without knowing what issue you are running into i will assume you have tripplechecked evreything. If this is the case then the issue maybe the location where your folder is. Do not use a synced cloud folder like dropbox or onedrive. Also dont use c:\ as you may need elecated privileges to write here. Use a folder on the desktop. Make sure to add the new path in the data source. Let me know how it goes.
Our desktop is on the c:\ folder, so I tried to move it over to my personal MacBook (and adjusted the path names), and I'm getting the error around the "ExportAsFixedFormat" command. Any thoughts? @@paphitisn
Thank you so much for this tutorial!
How can we applies a secured pdf woth password based on MS Excel column from data source?
Thankyou so much for this, do you have a video that explains how I can now send the PDFs to the respective candidates/recipients? i feel like this should be easy but I cant get my head around it.
there is no native method from Word. However you can purchase the Mail Merge Toolkit which is a word add-in and will allow you to send personalized attachments via mail merge, which is what you want to do.
God Bless You !!