Email in VBA

tkpk5280

New Member
Joined
Nov 1, 2014
Messages
9
Hello,

I am looking to create an email in VBA through excel that emails only the data associated with the same email address only once. .... For example with the following table:

AmountTimePersonEmail
314TomTom@gmail.com
2200TomTom@gmail.com
46TomTom@gmail.com
72ChrisChris@gmail.com
99200MattMatt@gmail.com
29.6MattMatt@gmail.com
292SteveSteve@gmail.com
3345SteveSteve@gmail.com
4446SamSam@gmail.com

<tbody>
</tbody>


I want to be able to email each person only once with the data points associated.

I have figured out how to email each line, however they will receive as many emails as there are rows, which would not be fun :(

If anyone knows how to solve my problem it would be greatly appreciated!!!

I am using Excel 2010

Thanks,
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Welcome to the Board!

I'd consider the following:

1) Invoke Advanced Filter to create a unique list of e-mail recipients.
2) Use the unique list to loop through each name and AutoFilter, then copy the filtered range into your e-mail with the code that AlphaFrog posted.

HTH,
 
Upvote 0
The link suggested included filtering for uniques. It would have to, of course, be modified to suit.
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,237
Members
448,555
Latest member
RobertJones1986

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