Mail Merge to Separate PDFs with Custom File Names and Folder Locations. No Plugin Needed!

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.ค. 2024
  • ** UPDATE! Mac code now available on website! **
    We tell you the best way of converting your Mail Merge into separate PDF documents so that each PDF has an individually defined file name and folder location.
    This is done using a Word Macro, so you avoid some horrible complex process, any need for a paid-for third-party plug-in, and if you've got that far, any need to re-name and sort out a folder full of PDF files.
    In this video we will take you through the process of adding the Macro, setting up the data and running the Mail Merge to PDF.
    The Macro is available on our website here: imnoss.com/word-mail-merge-to...
    Enjoy!!
    0:00 Introduction
    2:51 Initial Setup
    3:33 Adding the macro to Word
    6:36 Setting up the letter template in Word mail merge
    7:10 Creating the mail merge data with file names and folder paths
    10:50 First run
    11:57 Reviewing the macro code line by line
    22:31 Thanks for watching
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 968

  • @mrlyn13
    @mrlyn13 3 ปีที่แล้ว +9

    Just what I was looking for, a million thank you's for your work and code, saving me so much time at work, and for being so generous in providing the mac code as well!

  • @somoscranealo
    @somoscranealo ปีที่แล้ว +5

    Honestly once explained it's fairly intuitive. Thank you for breaking it down so nicely for us newbies! Can't wait to play with the full version

  • @scottdoscher5607
    @scottdoscher5607 2 ปีที่แล้ว +1

    This is one of the best tech videos I have ever seen on TH-cam and exactly what I needed. Great teaching right here.

  • @scottdoscher5607
    @scottdoscher5607 ปีที่แล้ว +1

    This is an AMAZING tutorial. I have been watching youtube coding videos for years. This is by FAR the best one out there. Great job and thank you for making it. It is exactly what I needed, clearly described and will help me tremendously.

  • @paulaseddon5717
    @paulaseddon5717 2 ปีที่แล้ว +13

    This is amazing. I have no experience of Macros, and this allowed me to do exactly what I needed to do, and has saved me so much time. The instruction was really clear and simple. Thank you very much!

  • @Willalicewang
    @Willalicewang 2 ปีที่แล้ว +4

    You Sir are a hero. Cannot thank you enough for sharing your macro and taking the time to demonstrate it!

  • @kylehaugstad2910
    @kylehaugstad2910 2 ปีที่แล้ว

    Exactly what I was looking for! I have to make individualized reports for my students. 8 minutes of this video saved me an hour's slog I have to do several times a year. Thanks!

  • @delanatraugott4926
    @delanatraugott4926 2 ปีที่แล้ว +18

    This is an incredible tutorial!! Not only do you explain each step of the process, you also assume the user may not have certain features displayed, so you provide additional details throughout the process. I am an avid fan of what you're doing!

  • @sambuckel3869
    @sambuckel3869 3 ปีที่แล้ว +4

    I cannot explain in words how useful this video has been for me. This has saved me hours of work and heartache, thank you so much. And so beautifully explained, thank you.

  • @suekwong
    @suekwong 3 ปีที่แล้ว +5

    Thank you so much! This save my day and the walkthrough is at a very good pace too! Not a second wasted! Brilliant work!

  • @EricSeiter
    @EricSeiter ปีที่แล้ว

    Fantastic! This macro just saved probably 20 hours of work trying to do this one by one. Thank you! The video is very well done, easy to follow and excellent teaching skills

  • @cherylc3679
    @cherylc3679 ปีที่แล้ว

    I am so glad that this tutorial is still available! It saved me tons of work hours by allowing me merge and save countless docs to pdf files instead creating them one by one. Thank you for sharing your expertise and for making the process so simple.

  • @mirondaross2939
    @mirondaross2939 2 ปีที่แล้ว +4

    The level of gratitude I have for this is indescribable! Oh man, I had been working on this for countless hours and then this! I was initially like please don't make me download 3rd party apps, etc, etc. BUUUTTT THIS! Amazing. Thank you!

  • @mdooling2
    @mdooling2 2 ปีที่แล้ว +7

    THANK YOU! THANK YOU! THANK YOU! You've saved me hours and hours of tedious work . Your instructions were clear, concise and thorough. I was skeptical that this would require almost as much effort as creating merge files one by one. In the end it was very simple to implement.

    • @Imnoss
      @Imnoss  2 ปีที่แล้ว +1

      You're welcome.

  • @user-qt5fs1hh4j
    @user-qt5fs1hh4j ปีที่แล้ว

    This is the first time that I've ever posted a review. This tutorial is amazing. I followed the process expecting it to fail but it worked perfectly! Thank you for saving me hours of work. Very much appreciated!

  • @amynorman9801
    @amynorman9801 4 หลายเดือนก่อน

    This is FANTASTIC!!! Just saved me hours of renaming individually!! THANKS SO MUCH!! Took me about 30mins to setup and now I'm off and running!! Thanks!

  • @TheManyManyMore
    @TheManyManyMore 2 ปีที่แล้ว +4

    Sir, your code will save many lives and many hours. This is exactly what I was looking for and you explained it exceptionally well. Thank you so much for your generosity!

    • @Imnoss
      @Imnoss  2 ปีที่แล้ว +1

      You are most welcome

  • @abarker1805
    @abarker1805 2 ปีที่แล้ว +6

    I actually shed a tear of joy watching this work the first time. Thank you so, so much!

    • @Imnoss
      @Imnoss  2 ปีที่แล้ว

      Glad it helped!

  • @josephjacobs9488
    @josephjacobs9488 2 ปีที่แล้ว +1

    Holy moly. Thank you so much for this! I just had to clean up my spreadsheet for 5 variations of letters we had, but after that, it was so quick using your macro! Saved a lot of time. Thanks again!

  • @jeffsmith1960
    @jeffsmith1960 ปีที่แล้ว

    This was an amazing tutorial. I have to create hundreds of separate documents and our IT team blocked the previous word add-in for security concerns. This was so clear and easy and even better it worked perfectly the first time. A very well designed piece of VB code, thank you so much!

  • @LauraAnnePettus
    @LauraAnnePettus 3 ปีที่แล้ว +3

    Thank you so much!!! This just saved me from separating 114 documents. You are a life saver!

    • @Imnoss
      @Imnoss  3 ปีที่แล้ว

      Thank you, I hope it continues to be useful.

  • @tamarastanko2933
    @tamarastanko2933 2 ปีที่แล้ว +3

    Thanks so much!! This code and video are life savers! As a non-coder, the explanations were well thought through and easy to follow. I appreciate you :)

    • @Imnoss
      @Imnoss  2 ปีที่แล้ว

      You're welcome!

  • @jilleken
    @jilleken 3 ปีที่แล้ว +1

    Thanks! Been looking for hours for a solution and with this macro it is done in a couple of minutes, huge life saver!

  • @lucvansleeuwen8865
    @lucvansleeuwen8865 3 ปีที่แล้ว +1

    Thank you so much for the clear explination and saving me a lot of work splitting up 120 documents into Word and PDF format. You are the hero of the day :-)!

  • @thevideogameinheritance90
    @thevideogameinheritance90 3 ปีที่แล้ว +3

    This is the coolest freaking thing ever. It's something that works so seamlessly that it feels like it should be a native feature in Word's merge mail. Awesome job. Thank you.

    • @Imnoss
      @Imnoss  3 ปีที่แล้ว

      thank you :)

  • @sarahaggar9185
    @sarahaggar9185 ปีที่แล้ว +17

    So cool! Thank you for taking time to put together this video.
    In case anyone else gets the '5941' error, double-check that you have the column names exactly as described. Took me a while to figure out that I did not, in fact, have them correct!

    • @marvinp5517
      @marvinp5517 ปีที่แล้ว

      Thanks for the heads up about the '5941' error.

    • @buildingwbigbootybekah9365
      @buildingwbigbootybekah9365 ปีที่แล้ว

      Aaaah thank you! i spent WAY too long stumped on this.

    • @nzoutdoors1923
      @nzoutdoors1923 5 หลายเดือนก่อน

      OMG, thank you!! The 5941 error was driving me crazy and like you I was sure I had it correct, but had spelt PDf instead of Pdf.

    • @robeaston6572
      @robeaston6572 13 วันที่ผ่านมา

      @@nzoutdoors1923 thanks for the spelling check post

  • @ariarc
    @ariarc ปีที่แล้ว

    Thank you for this wonderful tutorial. Not only is it a very effective macro, the way you have documented and explained it empowers the user to tweak it even more. Great job.

  • @cgomes1306
    @cgomes1306 2 ปีที่แล้ว +2

    This is AWESOME! Thank you for having created this video and for making the macro available for copy/paste. It was really , really simple to implement and it worked right away. Thank you!!!

  • @x3lea866
    @x3lea866 3 ปีที่แล้ว +17

    OMG this just saved me from having to manually sort 600 files. ID KISS YOU IF I COULD.

  • @taychorhwee3516
    @taychorhwee3516 3 ปีที่แล้ว +4

    Hi, the first word file was create and then it ran into an error Run-time error'5941': The requested number of the collection does not exist. Help! It's ok. I read some of your replies to others who had this issues. The column headers were not named correctly. Thank you for sharing the macro. It worked liked magic!!

  • @irustima
    @irustima 2 ปีที่แล้ว +2

    Wow! Not only are this tutorial and resources really helpful, but also the neatness with which the macros codes are written is simply beautiful! Thank you!

    • @Imnoss
      @Imnoss  2 ปีที่แล้ว

      Glad it was helpful!

  • @michaelstobierski5155
    @michaelstobierski5155 ปีที่แล้ว +1

    Need mail merge? BRILLIANT VIDEO! Step by step explanation makes this process super easy, even for someone like me with limited skills. Thank you!

  • @krisztinakocsis9633
    @krisztinakocsis9633 3 ปีที่แล้ว +1

    Works like a charm! And I'm no macro expert at all! Thank you for sharing!

  • @CareelBay
    @CareelBay 9 หลายเดือนก่อน +1

    OMG one of the most useful & helpful videos I've ever seen in my life! I was despairing this morning thinking about having to individually name 350 PDF files. And then discovered this! I can't thank you enough, not just for doing the video & supplying the macro, but for the fantastic way you explained it all & took us through what to do. A true leader & educator! THANK YOU!💥👋🙏🏅🏆

  • @dsschwalls
    @dsschwalls 9 หลายเดือนก่อน

    FINALLY!! Thank you for this simple, straightforward, and time-saving solution!

  • @jannatgattu5741
    @jannatgattu5741 2 ปีที่แล้ว +1

    This is beyond amazing ! At first , i thought its impossible , but i just thought that i should at least give it a try ! and trust me , i cannot thank you enough for this .
    This indeed was a life saver !

  • @stinav1057
    @stinav1057 2 ปีที่แล้ว +1

    THANK YOU SO MUCH! This was a lifesaver. My first time using macros and I was able to follow along and saved a huge amount of time.

  • @emilyweyl7069
    @emilyweyl7069 2 ปีที่แล้ว +1

    you are brilliant! Thank you! You just saved us having to manually name over 4000 documents for a mail merge!

  • @emiliec.9676
    @emiliec.9676 ปีที่แล้ว

    You just saved me from copy/paste super repetitive informations in multiples files for hours. Thank you so much

  • @marlenef4897
    @marlenef4897 4 หลายเดือนก่อน

    Great video - thanks for sharing for free! I eliminated the single word file saving to only generate the PDFs with your in depth explanation, so thankful for this!

  • @347TIVO
    @347TIVO 9 หลายเดือนก่อน

    I'm stunned about how robust and easy this is...thank you thank you!

  • @judithhall6202
    @judithhall6202 2 ปีที่แล้ว +1

    I feel like a genius, I used a visual basic macro! Thank you for saving me from hours of tedium.

  • @ClintR98
    @ClintR98 ปีที่แล้ว

    One of the clearest tutorials i've seen. Nicely done!

  • @BillJ56
    @BillJ56 ปีที่แล้ว +1

    Nice work! I have 30+ years of experience programming macros, and this code gave me excellent direction. Thanks!

    • @Imnoss
      @Imnoss  ปีที่แล้ว

      Glad it helped!

  • @jessicadobbe
    @jessicadobbe ปีที่แล้ว +1

    It's like magic. Had to save & close both the letter & excel list first because i was getting the mentioned '5491' error. Also make sure you added columns are titled correctly. then after reopening and running it works. appreciate it - my team will now think i'm a genius.

  • @eagledig
    @eagledig 3 ปีที่แล้ว +1

    Works great. I was having a problem because I left the mail merge wizard open when I tried to execute the macro, but once I closed it this worked really well. Thanks

  • @kalysemcelveen6381
    @kalysemcelveen6381 2 ปีที่แล้ว

    Thank you! Data set is ~1500, and the test run yesterday was a success! Sincere thanks from Dallas, Texas.

    • @Imnoss
      @Imnoss  ปีที่แล้ว +1

      You're welcome Kalyse, Great to hear!

  • @hamedtaghvaei7418
    @hamedtaghvaei7418 3 ปีที่แล้ว +1

    Thank you very much, the world needs more people like you 😍

  • @kimholt2893
    @kimholt2893 2 ปีที่แล้ว +1

    I can't even begin to tell you how helpful this has been. I've been searching the internet like crazy, and everything I found required me to download another piece of software (which I can't do as I don't have administrator rights on my work computer). I was able to sit back and watch my computer handle the approx 750 mail merged documents with ease. I can't even tell you how amazing this is. Thank you, thank you thank you. And an extra thank you for walking through the macro line by line so I knew there wasn't any "funny business" in there. LOL.

    • @Imnoss
      @Imnoss  2 ปีที่แล้ว

      thank you :)

  • @tarnilees6373
    @tarnilees6373 3 ปีที่แล้ว +1

    I am so grateful for this video, it has saved me so much time and I was looking for a video on how to do custom file names for ages, so glad I found this! Massive thank you!

    • @Imnoss
      @Imnoss  3 ปีที่แล้ว

      Hi Tarni, this is one of those crazy issues where so much time can be wasted. If you have any questions, please feel free to ask them here or via the website (imnoss.com/#contact).

  • @innocentoaikhena3045
    @innocentoaikhena3045 ปีที่แล้ว

    Imnoss, this is an incredible idea. You are amazing. Thank you! The step-by-step explanation makes life so easy. I am following and subscribing right-away.

  • @clarissabarra4954
    @clarissabarra4954 ปีที่แล้ว

    THANK YOUU!! I used a different tutorial that required you to write the macro as they didn't provide it. While it worked, it took a very long time to produce the results. This worked for my ~100 files. THANK YOU

  • @ryanm6511
    @ryanm6511 2 ปีที่แล้ว +1

    WOW THIS IS AMAZING!! If only I had found this video years ago. My job makes me save hundreds of files one-by-one. Not anymore thanks to this macro!!

  • @dalpatmistry5571
    @dalpatmistry5571 8 หลายเดือนก่อน +1

    This is very well explained training! Break it down very nicely to understand and use it. Thank you and appreciate it. I would like to watch other training you have on youtube...Have a great day!

  • @hellcat247
    @hellcat247 2 ปีที่แล้ว

    Thank you so much, you just saved me literal HOURS of work! Quick and easy to use, love it!

  • @harshadbarot
    @harshadbarot 2 ปีที่แล้ว +1

    I have no word for your excellent work. Thank you so much

  • @bco1158
    @bco1158 7 หลายเดือนก่อน

    This was a lifesaver!! Thanks for sharing this video AND the code! I did end up having to use the numerical value associated with the file format in order to get it to work.

  • @EduardoHerrera-pd8oe
    @EduardoHerrera-pd8oe ปีที่แล้ว

    Amazing solution using a macro within MS Word! And thanks a lot for sharing your knowledge in such a clear and detailed way with this wonderful tutorial. This is very useful indeed!

  • @charliepushman9362
    @charliepushman9362 2 ปีที่แล้ว

    This is amazing. Great solution, great clear, easy to understand video for the lay-man/person, great outcome! BRAVO!

    • @Imnoss
      @Imnoss  ปีที่แล้ว

      Thank you very much!

  • @abhijeetsinha2588
    @abhijeetsinha2588 2 ปีที่แล้ว +1

    Good 23 mins of my life spent into learning a kickass thing. Crisp and to the point. Kudos!

    • @Imnoss
      @Imnoss  2 ปีที่แล้ว

      thank you :)

    • @sifatullah8071
      @sifatullah8071 2 ปีที่แล้ว

      Can you share VBA code here ?

    • @abhijeetsinha2588
      @abhijeetsinha2588 2 ปีที่แล้ว

      @@sifatullah8071 , you need to write your own. :)
      Paste once you're done, I can help with troubleshooting.

  • @ronaldromero6793
    @ronaldromero6793 2 ปีที่แล้ว +1

    Thank You for sharing this !!!!!!!!! Save my day when creating multiple online certificates

  • @omphile179
    @omphile179 2 ปีที่แล้ว +1

    You literally saved me two days worth of work!!

  • @PennyWalker-zl5dw
    @PennyWalker-zl5dw ปีที่แล้ว

    Amazing!! Thank you - what a clear explanation for a complicated process. Well done! I have shared your TH-cam with all my colleagues.

  • @mbaumgartner9680
    @mbaumgartner9680 2 ปีที่แล้ว +1

    You are a saint! I've been fighting with an older marco for over 3 hours trying to get it to work. Now I have what I need to finish those annoying tax receipt mail outs! Thank you!!

    • @Imnoss
      @Imnoss  2 ปีที่แล้ว

      Glad I could help

  • @lforcoyen
    @lforcoyen 3 หลายเดือนก่อน

    This is magic, thanks!!!! As I have my Word configured in Spanish, I thought the code would not work... but it did!!!

  • @user-yy6jx9dw2t
    @user-yy6jx9dw2t 4 หลายเดือนก่อน

    Thank you so much for taking the time to do this. It's brilliant!

  • @siobhanmorrissey7047
    @siobhanmorrissey7047 2 ปีที่แล้ว

    This is an amazing tutorial Simon, your instructions are very clear. One of the best videos I have came across!

    • @Imnoss
      @Imnoss  2 ปีที่แล้ว

      Great to hear!

  • @thebrollyboy
    @thebrollyboy 3 ปีที่แล้ว +1

    So grateful - worked perfectly as I was watching!

  • @annawolenski3160
    @annawolenski3160 ปีที่แล้ว

    You are a GENIUS!!!!!! Thank you so much for this video!! Saved hours of work renaming files!!!!

  • @user-tc3ne2uj7f
    @user-tc3ne2uj7f ปีที่แล้ว +3

    This seems incredible, but is not working for me. Can someone PLEASE help??? I am getting run time error 5941 "The requested member of collection does not exist." When I debug, this line is highlighted:
    singleDoc.SaveAs2 _
    FileName:=masterDoc.MailMerge.DataSource.DataFields("DocFolderPath").Value & Application.PathSeparator & _
    masterDoc.MailMerge.DataSource.DataFields("DocFileName").Value & ".docx", _
    FileFormat:=wdFormatXMLDocument ' Save "singleDoc" as a word docx with the details provided in the DocFolderPath and DocFileName fields in the MailMerge data
    I am desperate.

  • @ShrutiSiddha
    @ShrutiSiddha 8 หลายเดือนก่อน

    Excellent stuff! Your explanation of the macro-stuff and the entire process. Thanks for making this video.

  • @deliciascaseiras1796
    @deliciascaseiras1796 ปีที่แล้ว

    THANK YOU MY BROTHER FROM ANOTHER COUNTRY AND ANOTHER FAMILY!!!

  • @fatinatiqahkhalid4551
    @fatinatiqahkhalid4551 3 ปีที่แล้ว +1

    Such a life saver! I am so grateful..Working From Home this comes really handy

  • @ashiapassee7588
    @ashiapassee7588 หลายเดือนก่อน

    Great Tutorial! Easy to follow and works as expected.
    👏

  • @SalvationArmySATX
    @SalvationArmySATX 2 ปีที่แล้ว +1

    Thank you for making my job easier. It worked like a charm.

  • @kjmckeen
    @kjmckeen ปีที่แล้ว

    This was awesome!! Thank you. I could not get the VBA to work from the Word Mail Merge Document on-line, but I wrote the VBA from your TH-cam video and it worked like a charm. Thank you:)

  • @suelandis1316
    @suelandis1316 2 ปีที่แล้ว +2

    Wow! Thank you for this! I was able to figure it out and feel powerful!

  • @leela1412
    @leela1412 3 ปีที่แล้ว +1

    Hello,
    This is Leela from India. A big thank you for your help and support , Your a life saver :-) your easy step by step video , saved my life , I was struggling to save 100 letters , the instructions were so easy - even the copying of the macros from your website was easy.

    • @Imnoss
      @Imnoss  3 ปีที่แล้ว

      Hi Leela, thank you so much, I really appreciate the positive feedback :)

  • @michaelababio1426
    @michaelababio1426 11 หลายเดือนก่อน

    You are a lifesaver. Thanks for sharing such valuable information for free.

  • @Charliecarso
    @Charliecarso ปีที่แล้ว

    This was absolutely incredible. Thank you so much for this and for explaining it to clearly. You've saved me hours of time!

  • @spida1998
    @spida1998 ปีที่แล้ว

    Thanks so much for this tutorial, used it successfully today to help work through a problem that was otherwise going to require a lot of manual work to achieve

  • @sangmeshwar007
    @sangmeshwar007 3 ปีที่แล้ว +1

    Thanks a lot this video saves my hours of copy paste work .....this is what I am searching from last year .....thank you very much

  • @maurya0079
    @maurya0079 3 ปีที่แล้ว

    Thank you so much...for this code using I have saved 1 hrs on the job time..& now I am doing within 2 Mnt.

  • @monicaaguirre8253
    @monicaaguirre8253 3 ปีที่แล้ว +1

    Thank you! This video is so easy to follow and a time-saver!

  • @yr6056
    @yr6056 3 ปีที่แล้ว +1

    This has been a life saver - thank you - saved me hours of copying/pasting/saving

    • @Imnoss
      @Imnoss  3 ปีที่แล้ว

      You're welcome :)

  • @dianabowden4213
    @dianabowden4213 ปีที่แล้ว

    This is amazing - thank you so much! I'm now watching the email follow up video!

  • @pranavchoudhury3374
    @pranavchoudhury3374 4 หลายเดือนก่อน

    This video is a life-saver - it has genuinely helped me so much. Thank you

  • @antonnirmal
    @antonnirmal 7 หลายเดือนก่อน

    i had this setup by my colleague some years back, but now this video helped me to setup the same without my colleague helps.. thank you..

  • @diyannurisnawati8678
    @diyannurisnawati8678 ปีที่แล้ว

    Very usefull!! I know nothing about macros whatsoever but did it successfully. Thanks a lot!!

  • @albertuserwinsusanto924
    @albertuserwinsusanto924 2 ปีที่แล้ว

    This is AWESOME! Million thanks Imnoss!
    I had a problem in the beginning, the data for naming the files contain characters that cannot be used for file names in windows. After I changed the naming system, it worked! Really impressed! Thanks for your generosity in sharing this. As the saying goes, may kindness begets kindness!

    • @imentoukabri6726
      @imentoukabri6726 2 ปีที่แล้ว

      Hello. Can you send me the text of the macro you used as the one provided on their website is not working

    • @albertuserwinsusanto924
      @albertuserwinsusanto924 2 ปีที่แล้ว

      @@imentoukabri6726 it works. I didn't change the Macro code. Just make sure you make the folder path right.

    • @imentoukabri6726
      @imentoukabri6726 2 ปีที่แล้ว

      @@albertuserwinsusanto924 I'm sure my folder path is correct. Did you use this Code : Sub MailMergeToPdfBasic() ' Mark the start of the Subroutine (i.e. Macro) and name it "MailMergeToPdf"
      ' Macro created by Imnoss Ltd
      ' Please share freely while retaining attribution
      ' Last Updated 2021-05-03
      Dim masterDoc As Document, singleDoc As Document, lastRecordNum As Integer ' Create variables ("Post-it Notes") for later use
      Set masterDoc = ActiveDocument ' Identify the ActiveDocument (foremost doc when Macro run) as "masterDoc"
      masterDoc.MailMerge.DataSource.ActiveRecord = wdLastRecord ' jump to the last active record (active = ticked in edit recipients)
      lastRecordNum = masterDoc.MailMerge.DataSource.ActiveRecord ' retrieve the record number of the last active record so we know when to stop
      masterDoc.MailMerge.DataSource.ActiveRecord = wdFirstRecord ' jump to the first active record (active = ticked in edit recipients)
      Do While lastRecordNum > 0 ' create a loop, lastRecordNum is used to end the loop by setting to zero (see below)
      masterDoc.MailMerge.Destination = wdSendToNewDocument ' Identify that we are creating a word docx (and no e.g. an email)
      masterDoc.MailMerge.DataSource.FirstRecord = masterDoc.MailMerge.DataSource.ActiveRecord ' Limit the selection to just one document by setting the start ...
      masterDoc.MailMerge.DataSource.LastRecord = masterDoc.MailMerge.DataSource.ActiveRecord ' ... and end points to the active record
      masterDoc.MailMerge.Execute False ' run the MailMerge based on the above settings (i.e. for one record)
      Set singleDoc = ActiveDocument ' Identify the ActiveDocument (foremost doc after running the MailMerge) as "singleDoc"
      singleDoc.SaveAs2 _
      FileName:=masterDoc.MailMerge.DataSource.DataFields("DocFolderPath").Value & Application.PathSeparator & _
      masterDoc.MailMerge.DataSource.DataFields("DocFileName").Value & ".docx", _
      FileFormat:=wdFormatXMLDocument ' Save "singleDoc" as a word docx with the details provided in the DocFolderPath and DocFileName fields in the MailMerge data
      singleDoc.ExportAsFixedFormat _
      OutputFileName:=masterDoc.MailMerge.DataSource.DataFields("PdfFolderPath").Value & Application.PathSeparator & _
      masterDoc.MailMerge.DataSource.DataFields("PdfFileName").Value & ".pdf", _
      ExportFormat:=wdExportFormatPDF ' Export "singleDoc" as a PDF with the details provided in the PdfFolderPath and PdfFileName fields in the MailMerge data
      singleDoc.Close False ' Close "singleDoc", the variable "singleDoc" can now be used for the next record when created
      If masterDoc.MailMerge.DataSource.ActiveRecord >= lastRecordNum Then ' test if we have just created a document for the last record
      lastRecordNum = 0 ' if so we set lastRecordNum to zero to indicate that the loop should end
      Else
      masterDoc.MailMerge.DataSource.ActiveRecord = wdNextRecord ' otherwise go to the next active record
      End If
      Loop ' loop back to the Do start
      End Sub ' Mark the end of the Subroutine

  • @nehagoswami2037
    @nehagoswami2037 3 ปีที่แล้ว +1

    Thank you so much for sharing .. This has been a great learning and saves so much time and effort.. Your video is so easy to follow and so simply explained... Thank You

  • @kylewong2023
    @kylewong2023 2 ปีที่แล้ว

    This is so good.
    Thanks so much for the fantastic add-on/macro/guide.

  • @agustinrajan8621
    @agustinrajan8621 2 ปีที่แล้ว +1

    Thank you so much working like a charm i was just in need of pdfs hence removed word doc part ❤️😍

  • @guillaumeboileau8247
    @guillaumeboileau8247 2 หลายเดือนก่อน

    Well-designed video, it is simple and complete. Congrats and thank you 👍

  • @muhammadekobudicahyono7090
    @muhammadekobudicahyono7090 ปีที่แล้ว

    many videos i watched that mail merge just make all participants certificate in 1 file, this is realy helping me to make each pdf participants certificate

  • @LailaBrammeld
    @LailaBrammeld ปีที่แล้ว

    I love this video it's the best and easiest way to do this process. I have shared this video a number of times!

  • @JennSchoner
    @JennSchoner ปีที่แล้ว

    WOW, WOW, WOW..... THANK YOU! I really can't believe this worked for me, and I am thrilled with how much time I will save.

  • @kathleencox3858
    @kathleencox3858 3 ปีที่แล้ว +1

    Wow! This is exactly what I needed and you posted this just moments before I searched for it. Thank you so much for the help and great video. This saved me hours of hair pulling! :-)

    • @Imnoss
      @Imnoss  3 ปีที่แล้ว

      Hi Kathleen, I'm glad it helped. Do get in touch (here or on the website: imnoss.com/#contact) if you have any questions.

  • @qwertyloops
    @qwertyloops 3 ปีที่แล้ว +2

    You're amazing. Thank you for your incredibly comprehensive help.

  • @shawdy0414
    @shawdy0414 หลายเดือนก่อน +1

    I did a mini dance when I ran the script! you saved me an enter day on mail merging 102 documents