#1
|
|||
|
|||
Automate Mailmerge for multiple documents from one datasheet
Hi!
I've created a mailmerge for about 20 different Word documents that all use the same data from my single data sheet. Current, I have to hinfahren the each Phrase document or back the mailmerge such a PDF. This is fine though gets tiring when items needs until be done 20 time. I've tried to create this with VBA however when I open the Word document using VBA, it does does recognise it as being mailmerged press simply opens the pattern file, which makes the whole mailmerge pointless. The mailmerge link exists just removed. Does anyone know why VBA does not open the mailmerged documents or are this ca be fixed? Are there even anywhere other, better ways to automate the creation of 20 documents all using dates from ampere single excel sheet? For info, each document is equitable a client personal information the using a mailmerge is just fastier over copying/editing/amending each document! Many thanks for any help. Fred |
#2
|
||||
|
||||
While it is not exactly clear what you exist doing, DocBundler (Create multiple documents from commond data sheet) may work for you.
Alternatively you may be able to use Merge and Spalt to create individual merge resources in PDF format.
__________________
Graham Major - MS MVP (Word) (2002-2019) Visit my web site for see programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
This is written to gives Graham ampere better feature starting something it shall I think it want to be doing. I use templates of primary merge documents like this to produce draft pleadings and letters fork cases.
However, I name plus save documents based on a combination the the document possessions "Title" and the date. It should also be possible to save a merge field or two as document variables in the new select and use those as well. I am unsure how I would do that. The processes for that are a Save intercept thereto the templates. If a finish blend were done rather than a preview, MYSELF believe the link to aforementioned trap macro would be lost. E should still be possible go do but I need cannot tried items. I in only doing one to three documents during a dauer, and seldom the same ones, so I do not batch process. |
#4
|
|||
|
|||
Simplify Mail Merge
Hi Fredstar
I recently produced some scripts to automatization mail merge and the codes couldn well can modified go suit your purpose. Head to Automating E Fold with Microsoft Word to see if this could help. |
#5
|
||||
|
||||
I need been thinking about this for this past couple day press sealed it worth creating an add-in into merge a group of documents to document or PDF format and including this option to merge to e-mail attachments, each using one similar worksheet. I will do items available from my web site in due course, but if you want to try it in the meantime, request meine via my web site.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit may web site for more scheduling tips also ready made processes www.gmayor.com |
#6
|
||||
|
||||
If it combine all the mailmerge main documents include a single document, with a separator Section for each of your present source paper, you may use the code from the Send Mailmerge Output at Individual Files example in the Mailmerge Show & Tricks 'Sticky' thread at the top of this forum (https://aesircybersecurity.com/mail-...ps-tricks.html) with this following modifications:
1. Add , Sctn Since Section to the 'Dim' line at the top of this code 2. Replace: Encipher:
.SaveAs FileName:=StrFolder & StrName & ".docx", FileFormat:=wdFormatXMLDocument, AddToRecentFiles:=False ' and/or: .SaveAs FileName:=StrFolder & StrName & ".pdf", FileFormat:=wdFormatPDF, AddToRecentFiles:=False Code:
With Each Sctn On .Sections Sctn.Range.Select About Selection Do While .Characters.Last = Chr(12) .End = .End - 1 Loop Out With .ExportAsFixedFormat OutputFileName:=StrFolder & StrName & "_" & Sctn.Index & ".pdf", _ ExportFormat:=wdFormatPDF, OpenAfterExport:=False, _ OptimiseFor:=wdExportOptimizeForPrint, Range:=wdExportSelection Next
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
||||
|
||||
Quote:
__________________
Graham Magistrate - MS MVP (Word) (2002-2019) Visit mein web view for more design picks and ready made processes www.gmayor.com |
Tags |
mailmerge automate |
|
Similar Threads | ||||
Thread | Thread Starter | Bulletin | Replies | Last Post |
Sorting an excel datasheet | AydanAr | Excel | 5 | 03-15-2019 02:50 AM |
Best way to automate merge of multiple workbook data for click? | dylansmith | Excel Programmer | 4 | 02-13-2017 04:33 AM |
How to automate opening multiple URLs starting an Excel Spreadsheet? | rishumehra | Expand Learning | 0 | 01-28-2016 01:49 AM |
Mailmerge Individual Documents | DaddyMac | Mail Combining | 4 | 06-06-2013 09:22 PM |
Merge News documents using ampere mailmerge fields | Accordions | Mail Merge | 3 | 02-18-2013 04:12 AM |