MACRO/VBA - Need Help Creating a Macro That Will Run Mail Merge and Save Pages as PDFs

schneiderc97

New Member
Joined
Jul 5, 2017
Messages
3
Hello,

I have an excel file that has 50-100 rows of contact information. I use Microsoft Word's mail merge function that uses this excel file as the data source to fill in different blanks on the template with contact information. I currently save all 50-100 results from the mail merge as PDFs and this can take up to two hours to complete every month.

I need help writing a VBA/macro that will:

1) Open the word doc and set the data source for mail merge
2) Run the mail merge
3) Save all the files as individual PDFs. (I would also like to have the titles of each PDF to match a name in the rows of the excel file.)

Any help would be greatly appreciated. I have minimal experience; so far I only have a macro that will open up the word template.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,215,506
Messages
6,125,193
Members
449,213
Latest member
Kirbito

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top