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 RUclips 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.
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 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!
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 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
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.
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.
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!
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
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!
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. ruclips.net/video/MsUpz6docZA/видео.html
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.
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 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.
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.
@@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
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 :)
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
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 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.
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.
Nicos this is really useful, thanks very much. I am using this along with someone elses VBA code which then sends emails with the custom PDFs created by yours. I am wondering if yours would also be able to send the custom PDFs to custom addresses (stored in an extra column in your spreadsheet)? To have both processes in one vba would be amazing. I am not enough of a coder to splice the two bits of code together. Thanks!
Definately possible. I however use a Word addin for sending the personalised pdf docs as attachments. It allows me to send personalised emails, cc bcc and a few other options also. To recreate this from the start would be alot of hassle. If you want, send me the vba code you are using and i will check to see if it can e merged with the mail merge code.
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: ruclips.net/video/taeWuL9VH18/видео.htmlsi=_Qo0lHwj9xJ5e1c5
Please check the folder names and locations as this will be your issue. Field names must be correct. If you d check everything it will work. See pin ed and peevious posts.
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
This is not working for me. I keep getting an Error 5941... I read somewhere it is because i am on a shared network, I am doing this on my work laptop so i have moved all files to my system c drive and it still will not work........
I suggest using your desktop or documents folder as the C: may be prtected. If it does not work in these lications then i suggest you double check the paths of folders and names of columns in the data source.
Hello, Nicos - Your videos have been super helpful with enhancing our MailMerge skills within our department. I actually landed here after watching your other video on MailMerge, in hopes that the coding would preserve our formatting/branding of the documents, which went well mostly! One thing that doesn't seem to keep is our links within the document (such as bookmarks or linked headers). Any guidance?
Hi, i am glad the videos have helped you. As for your issue, i am not sure why it is doing that. I have not had issues with links. Are the links in the master dochument recognised as links (usually blue text color)? Have you tried a traditional mege to single file and it works ok? It is a bit hard to fault find in the blind but the above questions would be the first things i would look in to.
THANK YOU SO MUCH!! This VB File helps me a lot! I have created donation receipts for an NGO, now I have to send them individually by e-mail to 400 addresses. Do you have a recommendation for an Outlook or Gmail add-in? I'm thinking about buying the Merge Toolkit from Mapi lab. Or could this even be done with VB and macros?
Inam glad this helped you. Thanks for your comment. It can be done with VB code but i personally use the Merge Toolkit as it offers alot of other features you will end up using.
THANK YOU. This is exactly what I was looking for, and your teaching is PHENOMENAL. However, I followed your instructions but I get "Run Time Error 5". It only saves 1 word doc and cannot proceed any further. can you please help? I keep your excel column names exactly and have not changed anything. I give permission for the macro to access the folder where files are being saved and everything. Any ideas what can be wrong?
If it is saving a file and stopping it means that you must have an error in your folder names or location. Is it generating both the work and pdf for the 1 file? if no then look at the pdf info. If yes check your data source as you may have an error in the file path for the second one. Be careful of leading or trailing spaces in your data source for the paths.
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.
You can download all the files i used including the code and the .bas VB module file from the link i provided in the description of the video (at the end of the description). It is easier to use the .bas file as this will import the macro for you automatically as explained in the video.
Hi, Thank you for the video. It is exactly what I have been looking for. Unfortunately I am receiving an error when it is running the macro. It creates the first word doc but fails to create the first pdf document. I receive a run-time error message '5941': The requested member of the collection does not exist. I have followed all of the steps and rewatched three times, but i'm baffled as to what I am missing. Do you have any suggestions what could be going wrong? Many thanks, Matt
Yes, check the field names you have specified in the macro and make sure they are exactly the same (small and capital letters) in the spreadsheet. Check that the file paths specified in the word and doc column are correct. Make sure to let me know if this has helped and you have resolved your issue. If the first word document is saving then it is a likely one of the 2 suggestions above. You could always remove the save to PDF commands and see if it exports all the word documents to make sure everything in the macro works.
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.
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.
This is, BY FAR, the best thing I've ever found on RUclips 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 😁👍
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.
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.
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.
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.
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 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.
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.
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
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 ❤️😇
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!
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 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.
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 :)
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.
ruclips.net/video/MsUpz6docZA/видео.html
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.
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 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.
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
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.
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 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 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.
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.
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 very much for the excellent presentation, informative explanations, and valuable module. Your efforts are greatly appreciated!🙏
you are welcome. 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.
So helpful, this video has saved me hours!
I am glad. thanks for your comment
Amazing video, thank you for showing every detail!
You are more than welcome. Thanks for your comment.
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
Be blessed so helpful, Nice instructions
@@GideonMacks thank you for your comment. I am glad this was helpful.
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.
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
Thanks For your help - I already was ready to start doing it by myself!
I am glad it helped
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.
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
Thank a lot for the detailed explanation and tutorial! Much appreciated! This is really helpful!
You are welcome. Thanks for your comment
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
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.
Thank you so much for this amazing tutorial.
Thank you for your comment. I am glad this helped you.
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 :)
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
This is extremely useful!!! THANK YOU!!!
I am glad to hear it. Thanks for your comment.
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
Awesome.... just what I was looking for
glad to hear it. Thanks for the comment
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.
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
my dude, this is awesome. thanks!
Glad you found it useful. Thanks for your comment
This is very helpful. Thank you so much! :)
I am glad. Thanks for your comment
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?
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 great! work like a charm. Thank you for sharing!
Glad it was useful for you. Thanks for the comment
This is perfect!! Thank you very much for sharing your knowledge!
You are welcome. I am glad you found it useful
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.
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.
Thank YOU! This was amazing and so helpful!
Thanks for your comment. I am glad this helped
Works perfectly. Thank you!
That is great to hear. thanks for your comment.
Thank you so much Sir for this excellent presentation, it has really benefited me a lot.
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.
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.
Brilliant!!
Glad you found this useful. Thanks for your comment
Can't thank you enough for this video.
You just did :)
Thank you for your comment.
I LOVE THIS MAN! Thank you so very much!
You are most welcome. Thanks for the feedback, it is appreciated.
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.
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.
this is great explanation and very happy to see it
Thanks for the feedback
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.
Nicos this is really useful, thanks very much. I am using this along with someone elses VBA code which then sends emails with the custom PDFs created by yours. I am wondering if yours would also be able to send the custom PDFs to custom addresses (stored in an extra column in your spreadsheet)? To have both processes in one vba would be amazing. I am not enough of a coder to splice the two bits of code together. Thanks!
Definately possible. I however use a Word addin for sending the personalised pdf docs as attachments. It allows me to send personalised emails, cc bcc and a few other options also. To recreate this from the start would be alot of hassle. If you want, send me the vba code you are using and i will check to see if it can e merged with the mail merge code.
Thank you so much, you saved my time.
I am glad it helped.
Great!!!
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:
ruclips.net/video/taeWuL9VH18/видео.htmlsi=_Qo0lHwj9xJ5e1c5
Wow!!! what an amazing help! thank you very much!!!
I am glad you found this helpful. Thanks for the feedback
This is amazing! Thanks for sharing.
Thanks for your comment. I am glad this was useful for you.
Thank you for the Information
I.was a le to use it and run it. This is very helpful. Thank you so much! 😊
Awesome. 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
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.
Thank you so much!!!! This helped me a lot!!!
Great video. Thank you.
Thanks for the comment
I tried this code on another word document. But after running the code it show - Run time error 5852. Requested object is not available.
Please check the folder names and locations as this will be your issue. Field names must be correct. If you d check everything it will work. See pin ed and peevious posts.
God Bless You !!
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
Thanks it was very helpful… you explained it so well
Thanks for your feedback
Thanks a lot, man!
This is amazing thank you!!
You are welcome. Thanks for your comment
This is not working for me. I keep getting an Error 5941... I read somewhere it is because i am on a shared network, I am doing this on my work laptop so i have moved all files to my system c drive and it still will not work........
I suggest using your desktop or documents folder as the C: may be prtected. If it does not work in these lications then i suggest you double check the paths of folders and names of columns in the data source.
Hello, Nicos - Your videos have been super helpful with enhancing our MailMerge skills within our department. I actually landed here after watching your other video on MailMerge, in hopes that the coding would preserve our formatting/branding of the documents, which went well mostly! One thing that doesn't seem to keep is our links within the document (such as bookmarks or linked headers). Any guidance?
Hi, i am glad the videos have helped you.
As for your issue, i am not sure why it is doing that. I have not had issues with links. Are the links in the master dochument recognised as links (usually blue text color)?
Have you tried a traditional mege to single file and it works ok?
It is a bit hard to fault find in the blind but the above questions would be the first things i would look in to.
THANK YOU SO MUCH!! This VB File helps me a lot! I have created donation receipts for an NGO, now I have to send them individually by e-mail to 400 addresses. Do you have a recommendation for an Outlook or Gmail add-in? I'm thinking about buying the Merge Toolkit from Mapi lab. Or could this even be done with VB and macros?
Inam glad this helped you. Thanks for your comment. It can be done with VB code but i personally use the Merge Toolkit as it offers alot of other features you will end up using.
THANK YOU. This is exactly what I was looking for, and your teaching is PHENOMENAL.
However, I followed your instructions but I get "Run Time Error 5". It only saves 1 word doc and cannot proceed any further. can you please help? I keep your excel column names exactly and have not changed anything. I give permission for the macro to access the folder where files are being saved and everything. Any ideas what can be wrong?
If it is saving a file and stopping it means that you must have an error in your folder names or location. Is it generating both the work and pdf for the 1 file? if no then look at the pdf info. If yes check your data source as you may have an error in the file path for the second one. Be careful of leading or trailing spaces in your data source for the paths.
I receive an error that says "Run-time error '5852': Requested object is not available." Do you know how to troubleshoot this issue?
Check all folder names, field names in the data source and the folder paths in the data source
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.
I love you man
I take it you found this useful 😀. Thanks for your comment
Fantastic video 😃 thank you sir!
You are welcome.
Thank you for the Video.
I tried to write the code, but something is getting stuck. How can I get the import file from you?
Thanks Marinus
You can download all the files i used including the code and the .bas VB module file from the link i provided in the description of the video (at the end of the description). It is easier to use the .bas file as this will import the macro for you automatically as explained in the video.
Thank you very much!
You are welcome. Glad it helped
Hi,
Thank you for the video. It is exactly what I have been looking for.
Unfortunately I am receiving an error when it is running the macro.
It creates the first word doc but fails to create the first pdf document.
I receive a run-time error message '5941': The requested member of the collection does not exist.
I have followed all of the steps and rewatched three times, but i'm baffled as to what I am missing.
Do you have any suggestions what could be going wrong?
Many thanks, Matt
Yes, check the field names you have specified in the macro and make sure they are exactly the same (small and capital letters) in the spreadsheet. Check that the file paths specified in the word and doc column are correct. Make sure to let me know if this has helped and you have resolved your issue. If the first word document is saving then it is a likely one of the 2 suggestions above. You could always remove the save to PDF commands and see if it exports all the word documents to make sure everything in the macro works.