Excel Macro or mail merge, multiple rows to single recipient in one email?

agohir

New Member
Joined
Aug 5, 2016
Messages
14
Hello,

I have a spreadsheet in Excel with First & Last Name combined in one column and three other columns.The columns are as follows;

First&Last NameUsername Password Email address
ChristineMurrayCMurray_HPTest!23Cmurray@tbh.com
ChristineMurrayCMurray_GHPts.345Cmurray@tbh.com
BrodySmithBSmith_EPTest123!Bsmith@api.com
BrodySmithBSmith_SPTemp!32Bsmith@api.com
AdamLa SelvaALa Selva_GSHPts.245Alaselva@gsh.com

<tbody>
</tbody>

In total I have 350 rows. As you can see above come rows have same names and email address but the username and password are different.
I want to use a macro or mail merge in excel that will send an email to each person regarding their username & password. But I want to send only one email to a single recipient who may have multiple rows in the spread such as ChristineMurray shown in table above.
Is there a macro or mail merge function I can use that will perform the function of sending one email to single recipient who may have multiple rows and also each email to remaining unique persons/email addresses.

Any help/feedback would be appreciated!

-Arslan
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You can use Word's Catalogue/Directory Mailmerge facility for this (the terminology depends on the Word version). To see how to do so with any mailmerge data source supported by Word, check out my Microsoft Word Catalogue/Directory Mailmerge Tutorial at:
Microsoft Word Catalogue/Directory Mailmerge Tutorial | Windows Secrets Lounge
or:
http://www.gmayor.com/Zips/Catalogue Mailmerge.zip
The tutorial covers everything from list creation to the insertion & calculation of values in multi-record tables in letters. Do read the tutorial before trying to use the mailmerge document included with it.

The field coding for this is complex. However, since the tutorial document includes working field codes for all of its examples, most of the hard work has already been done for you - you should be able to do little more than copy/paste the relevant field codes into your own mailmerge main document, substitute/insert your own field names and adjust the formatting to get the results you desire.

Another option would be to use a DATABASE field in a normal email mailmerge main document and a macro to drive the process. An example of this approach can be found at: http://answers.microsoft.com/en-us/...g-tables/8bce1798-fbe8-41f9-a121-1996c14dca5d

Alternatively, you may want to try one of the Many-to-One Mail Merge add-ins, from:
Graham Mayor at http://www.gmayor.com/ManyToOne.htm; or
Doug Robbins at http://bit.ly/1hduSCB

In addition to a 'Many to One' merge, the latter handles:
• Merge with Charts
• Duplex Merge
• Merge with FormFields
• Merge with Attachments
• Merge to Individual Documents
• Merge, Print and Staple
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,331
Members
449,155
Latest member
ravioli44

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