+ Reply to Thread
Results 1 to 15 of 15

Email same email addresses' data onto one email

  1. #1
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Email same email addresses' data onto one email

    Dear all

    On the attached sheet I have a list of suppliers that I paid. The list changes daily. I have an Email button when I click the Email button I like to send to email to each email address by copying the related rows, if it is the same email address I only want to send one email. At the moment it copies everything onto one email.
    here is the button code
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Email same email addresses' data onto one email

    Hi lapot

    The Code in the attached does this...
    if it is the same email address I only want to send one email
    I don't know how you'll handle the "Name" thing as a given Email Address can have multiple Names attached to it.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Email same email addresses' data onto one email

    This works perfectly thank you very much,

    but only one thing, if it is same email address for deferent persons it lists all of them in one email, is there way to produce different email for different person even though they have same email address?

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Email same email addresses' data onto one email

    Hi lapot

    You requested this...
    if it is the same email address I only want to send one email.
    I believe I mentioned this...
    I don't know how you'll handle the "Name" thing as a given Email Address can have multiple Names attached to it.
    This is the Holiday Season...I'll be needing to address this later.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Email same email addresses' data onto one email

    Hi lapot

    Try the Code in the attached...
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Email same email addresses' data onto one email

    Sorry I was on holiday, I just saw your reply jaslake

    You are absolutely a star. it works perfectly, I hope this also help all the others who is looking for this kind of email solution.

    Thank you so much

  7. #7
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Email same email addresses' data onto one email

    Dear all

    When you click the email button on the attached sheet, it creates email for each name on the Name sheet(Sheet2) but I have noticed that the created emails doesn't have the correct email address. It lookslike one name's email address skipped from the bottom on the Name Sheet. This might be because the names gets filtered on column B on the remittance sheet(Sheet1)and put in to Name sheet,
    because of they get filtered then the email addresses don't get picked up correctly.

    Can anyone help to sort this out for me please?

    kind regards
    Attached Files Attached Files
    Last edited by lapot; 01-12-2016 at 12:47 PM.

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Email same email addresses' data onto one email

    Hi lapot

    What do you wish to happen if the Email Address is empty?
    Empty Email.jpg

  9. #9
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Email same email addresses' data onto one email

    Quote Originally Posted by jaslake View Post
    Hi lapot

    What do you wish to happen if the Email Address is empty?
    Attachment 439973
    I like them show as empty on the email then I can manually type it. We are trying to update email addresses on our system so that eventually there will be no empty ones, but mean the time empty ones we can manually type.

    can we do this please?

    thanks

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Email same email addresses' data onto one email

    Hi lapot


    Try the Code in the attached...let me know of issues.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Email same email addresses' data onto one email

    that works perfectly thank you very much. I wish you should show me what you changed in the code but you are a star, I really appreciate your help.

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Email same email addresses' data onto one email

    Hi lapot

    I added these two lines of Code...
    Please Login or Register  to view this content.
    and changed this line of Code...the previous line of Code was referencing the wrong Row...
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Email same email addresses' data onto one email

    Thanks for this very helpful

    Also I was studying your code and couldn't find an answer for "Cel" that you assigned as variable relating this code. Don't we usually say something like Cel = ....... if we did Dim Cel as String, or Range
    Please Login or Register  to view this content.

  14. #14
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Email same email addresses' data onto one email

    Hi lapot

    Look for this line of Code. Put a breakpoint there and step through the Code. Hover over cel to see it's value.
    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Email same email addresses' data onto one email

    my break point doesn't show that only when there is an error and yellow highlighter come up the I can hover over lines and see values, you are too advance anyway , it will be hard for me to understand whole code. I wish I could be like you

    respect

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 11-06-2014, 06:12 AM
  2. Replies: 1
    Last Post: 09-09-2013, 03:46 PM
  3. email excel file or worksheet as an attachment to multiple email addresses
    By jgeagle5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-16-2009, 03:40 PM
  4. can I copy a column of email addresses, paste into email address?
    By Lizizfree in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-20-2006, 05:05 PM
  5. [SOLVED] Transfer Email addresses from spreadsheet to email address book
    By Beana in forum Excel General
    Replies: 2
    Last Post: 05-30-2006, 01:10 PM
  6. Move a Column of 500 Email Addresses into BCC Field of an Email
    By Mark in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  7. [SOLVED] Move a Column of 500 Email Addresses into BCC Field of an Email
    By Mark in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1