Mail merge to email(outlook) individual letters to multiple recipients with cc

I have excel data that I use to complete a letter via mail merge.  I then need to create an email and attach letter or paste as an image and send to multiple recipients with a cc as well.   As I have 160 letters, Iam not sure if it is possible to do all that automatically?  I can create VBA in excel to open new mail, add to and cc contacts, fill in subject line and enter text in body.  I could attach file but mail merge creates one file.  I tried word mail merge, but a lot of formatting to get the letter looking professional in the body of email and it will only do one email contact, no cc.  Any help would be great, not sure if I'm wasting time on something that's not possible
DavidAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GrahamSkanRetiredCommented:
Firstly, you can split the output Word document into separate letters using some VBA macro code like this
Sub SplitMergeResult()
     'declare the variables
    Dim sec As Section 
    Dim rng As Range
    Dim strName As String
    Dim DocA As Document
    Dim DocB As Document
   
    Set DocA = ActiveDocument 'use the active document as input
    For Each sec In DocA.Sections 'step through each section 
        Set rng = sec.Range 'get the range of the section
        rng.MoveEnd wdCharacter, -1 'omit section break
        rng.Copy
        strName = Split(sec.Range.Paragraphs(1).Range.Text, vbTab)(0) 'find the new name in the text. It might well be in a different place in your document
        Set DocB = Documents.Add 'create a new blank document
        DocB.Range.Paste 'paste the text from the current section
        DocB.SaveAs strName & ".doc" 'save the new document and 
        DocB.Close 'close it
    Next sec 'now treat the nest section
End Sub 'all done, so end the procedure

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DavidAuthor Commented:
Thanks didn't think about approaching in 2 steps.  So the above separates the individual letters.  When I then complete the second piece in excel, is there a way to reference a specific file name to be added in each email?
0
GrahamSkanRetiredCommented:
The macro above extracts the unique data (e.g. recipient) which is used for the file names from a particular position in the letter. (I arbitrarily chose it to be the text before the first tab character.) You could match the file names to the list of recipients.
0
DavidAuthor Commented:
Thanks for the assistance with the code and approach to my problem.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.