+ Reply to Thread
Results 1 to 10 of 10

macro to send an email for every unique item

  1. #1
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    macro to send an email for every unique item

    hi

    need you assistance to edit the existing macro i have. currently this send 1 email for every unique email address in column v. what i need is for the macro to send 1 enail for every uniqie shipment number in column A. So in my attached example, [email protected] will receive 5 separate emails.

    Also i need the place of delivery be written inserted in the email body...

    I hope somebody could help me pleaasseeee
    Attached Files Attached Files
    Last edited by melody10; 11-27-2014 at 11:13 AM.

  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: macro to send an email for every unique item

    Hi Melody

    Will Shipment Number ALWAYS be unique or could there be more than one record for a Shipment Number?
    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
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: macro to send an email for every unique item

    it would always be a unique shipment number...

  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: macro to send an email for every unique item

    Hi Melody

    I'm about done for the night...Holiday Weekend here in the States...have Family in.

    What you require is not difficult. I'll get back to you ASAP.

  5. #5
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: macro to send an email for every unique item

    thanks!!! ill look forwardto it... would really be a big help

  6. #6
    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: macro to send an email for every unique item

    Hi Melody

    The Code in the attached has been modified for this. Let me know of issues.

    Quote Originally Posted by melody10 View Post
    hi

    need you assistance to edit the existing macro i have. currently this send 1 email for every unique email address in column v. what i need is for the macro to send 1 enail for every uniqie shipment number in column A. So in my attached example, [email protected] will receive 5 separate emails.

    Also i need the place of delivery be written inserted in the email body...

    I hope somebody could help me pleaasseeee
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: macro to send an email for every unique item

    hello jaslake.... the code is doing as per my requirements. Just one little editing, is it possible to put the shipment number on A8 and the Place of delivery on A12? Right now the mail being generated is placed on a12 while place of delivery is on b12.

    really appreciate your help on this

  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: macro to send an email for every unique item

    Hi Melody

    The Code in the attached has been modified to do this
    put the shipment number on A8 and the Place of delivery on A12
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: macro to send an email for every unique item

    perfect!! thanks a lot!

  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: macro to send an email for every unique item

    Hi Melody

    You're welcome...glad I could help. Merry Christmas.

    If this resolves your issue please mark your Thread as SOLVED.

+ 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. [SOLVED] cdo send send mail - getting my external .vbs script directly into a an excel worksheet
    By PieterBlan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2014, 08:10 AM
  2. Replies: 1
    Last Post: 03-11-2014, 12:24 PM
  3. Macro to Send to a Distribution List with a Macro
    By bhbjk1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2013, 10:57 PM
  4. [SOLVED] How to simplify the VBA code from function to send rows into send range
    By herukuncahyono in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2013, 03:11 AM
  5. Automatic send email (without even click send in mail software) with excel vba ??
    By alexnkc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2013, 08:31 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