MAIL MERGE PART2: Create Individual Document/ PDF File with Customized Filename Using Mail Merge

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] so [Music] [Music] good day everyone so this is part two of our discussion about mail merge and our goal for today is having to create individual file document file or pdf file with customized file names so we will be needing the use of macros macros are scripts or codes developed to be able to perform certain sequences of commands so i'd like to thank simnost for having to provide commands necessary to execute and achieve our objective that is the creation of individual file with customized file name so as you could recall from our last meetings discussion in mail merge you have to have two files your source file which is a document file or your template which is a document file and your source file which is a spreadsheet this time for our spreadsheet as you could see here there are four added columns named folder doc folder path doc file name pdf folder path and pdf file name their headers should be named as such meaning to say that you have to observe proper capitalization for the macros to find them when the commands are run by microsoft word so again the capitalization as to how doc folder path doc file name pdf folder path and pdf file name are typed should be observed so let's start now so let's put in the doc folder path meaning to say it is the location where the document file for our output can be found so i added here two folders name doc file and pdf file this will be the location where the individual document file can will be found after having to run mail merge and i have here the pdf file folder where the pdf generated files will be saved so to get the path for the doc files i just have to open the doc file folder click on the address bar here and then this address should be copied and i have to paste this here in excel and i just have to copy all this document location and then i have my document file name so this is basically just your choice if you want the document file name to be just the name of each individual student so you just you could simply just come up with the formula here equals sign and link that to the name of the student or if you want to further customize it say you want to have certificate of enrollment dash now i have your ampersand and before placing the name of the student so that will be my file name for the document file that will be created and then for the pdf folder path similar to the document folder path so i'll have to open pdf file folder click its location copy its address go back to my source file and then paste the pdf folder path and then copy all this and then for the pdf file name i will have the same so that's equal sign certificate of enrollment dash and then i have my ampersand the name of the student and then i just have to copy this one and save this so i could now close my source file go back to my document file and we will now be creating our macro to create macro you have to go to the developer tab if the developer tab is not available all you have to do is to make this one visible by having to right click add your ribbon and then choose customize ribbon and then to look for the developer option here you just have to check the developer option and click ok if the developer tab is not available so we're ready now to just copy paste our commands so you have your visual basic and you have your macros since we do not have the macro yet so we will be clicking visual basic and we have here our project for our project you have to click on normal so why are we choosing normal we are choosing normal because we want our macro to be available even though we're making use of a different document but if we will just be choosing a particular project meaning to say that the macro will only be available in that given project since we want it to be available whenever we open microsoft word whenever we do mail merging so we will choose normal we'll right click on normal click on insert and we have to add a new module so this is our new module now it's called module one and this is the code provided by simnos so i just have to copy all this and paste this in our given space so once we're done let's just save this and if you could actually see the name of our macro is main merge to pdf basic so let's close this one i'll click on macros here i look for the macro name mail merge the pdf basic and click on run if in case you will encounter problem like this one meaning to say that the link between your source file and that of your template is not updated so we will just be ending this one and let's select the source file once again so going back to mailings we choose select recipients use existing list and go back to our source and then choose our source file our excel file and then once again it's just one click on ok and then we're ready to go so for you to be able to see how things are going so i'll just place all this windows together i have my template here at the right side i will open the document file here resize it so that you could see the files are actually being created and i will open another folder here for the pdf file or another window for the pdf file okay so let's go now to our macros again look for the mail merge to pdf basic and then click on run so after clicking on run you'll be able to see that your individual document files are now created so there you go for the individual document file the same as the individual pdf file so that's how you basically create a customized file name for individual document file and or pdf file making use of a macro so thank you once again to sympnos for their codes if you want to have access to the codes to be able to do the same you could simply email or send an email to my email that will have an autoresponse to get the code for the mail merge so this is basically my email that's so some sensei gmail.com
Info
Channel: Seosamh Sensei
Views: 14,670
Rating: undefined out of 5
Keywords: O365, Microsoft Office, Microsoft Office 365, Microsoft Word Mail Merge, Mail Merge 365, Create Individual Document, Create Individual PDF File, Mail Merge PDF, Individual PDF File, Empowerment Technologies
Id: JHIIK-UJwWU
Channel Id: undefined
Length: 10min 42sec (642 seconds)
Published: Mon Nov 08 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.