Excel - Create PDF Files from a Spreadsheet - VBA Macro Mail Merge Tutorial

preview_player
Показать описание
Learn how to create many PDF files from a template in Microsoft Excel (similar to a mail merge). In this tutorial we'll create a Macro (VBA code) that will take our spreadsheet data and convert it to separate PDF files in a folder.

#excel #pdf #vba
Рекомендации по теме
Комментарии
Автор

the best excel teacher i found after a long time

thomassunil
Автор

Super useful! I use this code to create large number of personal reports for different users of one of our farm management programmes from an excel file. I used to do this via MailMerge, but wanted to create a version that allows for inclusion of charts that display the user's performance relative to the the larger population or other benchmark values. Getting charts into MailMerge is not impossible, but has severe limitations on the type of charts and the number of series in any given chart (only a single series is possible to my knowledge). Having a couple of charts in the Template and the Active sheet works a treat as long as automatic calculation is switched on. Thank you so much, discovering this video really made my day :)

oscarw
Автор

Thank you so much for this great tutorial! I am trying to apply this to a pivot table to generate a purchase order by customer (each customer has at least three purchased itens) on individual PDFs. Printing it separately is not an issue since I can set the customer filed on the pivot table as a page break. The challenge is generating and saving the pds. Looking forward to hearing from you on this :)

juliamt
Автор

WOW, it 's awesome~ I look forward the Google Spreadsheets version

FTIMAK
Автор

Great work. Do you have a solution for google sheets too?

zaccoza
Автор

Great code! super helpful... Was wondering how I could modify it to have all of the pdfs into one doc instead of separate ones. I am thinking that I need to move the 'next r' location?

MichaelGangler-ou
Автор

This is AWESOME... I love your videos... I do have one question for this one though. If we were to add more customers to that list and click create PDF would it overwrite all the existing data or continue on with just he new data? Maybe add a check to see if file already exists?

JoeSalmi
Автор

Excellent but you forgot to disable screen updating to stop annoying blinking of the screen specially when the list is long. One more thing, you could take this project one step further by creating templates word document and use them. Thank you

abdullahquhtani
Автор

can you tell me.. how can we create a password protected pdf with different passwords.. like the name of pdf.. thank you

YourOnlineMentor
Автор

Thanks for the video. When i'm running through the code step by step using F8 (as shown around the 21 minute mark), the code isn't making any changes to my document. I've triple checked the code and it matches what's in the video perfectly, down to the last comma.
Is there any way to troubleshoot this?

Drivadk
Автор

Does this work if the cell value is in images?

Animeisthebest
Автор

thanks, its really help, but how / what code to add if we want to read the next column, in this example here, we replace in A column only..(active sheet)

shrafidahedruce
Автор

hi nice video, just wanted to check one thing can we disable the right click or editing the pdf file created, i just want user should not able to edit the pdf file if any pointers please help

mayurmarathe
Автор

Fantastic work, thank you for taking the time to do the video. I'm having a problem with it. For my original data set it works fine. I essentially added more to the list and it stops at the original number and gives me a file not saved error. When I hit debug, it said the issue is in the activetab export section. Would you be willing to help me with this please?

philipdesposito
Автор

Hi sir
Thank you so much & it worked well. But it would be of great help if we have code to directly send an email attaching those pdfs via outlook. Please would you mind updating that

monishamoni
Автор

Hi, Request to upload VBA code here in the Comments.thanks

ashutoshvirtues
Автор

Excellent tutorial 👏👏👏
If possible generate a Word document for a template un Word 🙏🙏

giancarloschafloqueguzman
Автор

how if we want to add chart, graph radar on that code bro. ?

sugiartosugiarto
Автор

Why are curly brackets appearing in the pdf along with the cell value?

sanskrutiagrawal
Автор

What if on same I'd we are having multiple accounts and we want account balance details for all accounts in same pdf

chintanpandya