
You may also want to download the Merging with Attachments document that is also on that page which explains how One thing to note is that the field names in your data source must contain only alphanumeric characters (No and the field names must not start with a numeric character (0-9).

When you have done that, the tab shown below will be added to the Ribbon:

In Windows XP the default location for that folder isĬ:\Documents and Settings\\Application Data\Microsoft\Word\STARTUPĬ:\Users\\AppData\Roaming\Microsoft\Word\STARTUP Save the file in the Word Startup folder. You can download the MergeTools – 20130627 Add-in that I created from the following page of my Windows Live SkyDrive: Hope this helps, Doug Robbins - MVP Office Apps & Services (Word) It's time to replace ‘Diversity, Equity & Inclusion’ with ‘Excellence, Opportunity & Civility’ - V Ramaswamy I need to invoke word merge and send the mail merge to a filename that uses data from the mail merge (final goal is to merge to PDF)ĭoug Robbins - Word MVP dkrmvpsorg

"gDietz" wrote in message news:*** Email address is removed for privacy ***. If you are using Word XP or later, the “Add-in to Merge Letters to Separate Files” that I have written and that can be downloaded from that site will allow you to create each letter as a separate file with a filename taken from a field in the data source with See the “Individual Merge Letters” item on fellow MVP Graham Mayor’s website at: ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _įalse, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _ WdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _ However, I would like the filename to be passed from a merge field in the data source.Īpplication.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _ I can set the macro to merge to a new document.

I have 1 record that I write to a header text source I need to invoke word merge and send the mail merge to a filename that uses data from the mail merge (final goal is to merge to PDF)
