+ Reply to Thread
Results 1 to 11 of 11

macro to create an email with unique subject for every value in column A

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

    macro to create an email with unique subject for every value in column A

    hello

    its me again.. need your help to create a macro which:

    1. create a single email for every unique item in sheet 1 column a, starting in row 4
    2. user will have the option to choose which template he would send (1 or 2)
    3. some data for the templates need to be retrieved from sheet 1 (I have highlighted in blue the needed data from sheet 1)
    4. subject of the email would be the value in Column A + value in H2.


    sample
    in the attached file... email [email protected] should receive 2 emails, 1 for boooking 11111111 and another for 2222222.

    really hope this is not asking too much... but would really realllyyyy appreciate your help on this.

    many thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: macro to create an email with unique subject for every value in column A

    hi

    which email client you are using, which OS & version?

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

    Re: macro to create an email with unique subject for every value in column A

    Ms outlook 2010..

  4. #4
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: macro to create an email with unique subject for every value in column A

    Ok try this macro in attached file..

    Cheers!!
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: macro to create an email with unique subject for every value in column A

    Did you checked this?

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

    Re: macro to create an email with unique subject for every value in column A

    hello dear... sorry it took a while.

    i tried the attached file but it seems to have a little error. when i added some booking numbers... the table in the message contains the whole list. also the email address is being removed from the TO when message is displayed. im attaching my sample email so you can check.

    really appreciate your help dear..
    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 create an email with unique subject for every value in column A

    hi dear.. sorry to bother again.. seems i figured out what was causing the error but need your help for the solution.

    when the macro creates the 1st email message, it does not delete the data in Template1. so if the 1 mail message has 5 rows and the 2nd email message only has 2 rows.. it will still copy the remaining 3 rows from the 1st message..

    any brilliant ideas?
    Attached Files Attached Files

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

    Re: macro to create an email with unique subject for every value in column A

    hi dears... any advise on above?

  9. #9
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: macro to create an email with unique subject for every value in column A

    Quote Originally Posted by melody10 View Post
    hi dears... any advise on above?
    got stuck with work, will update you ASAP

  10. #10
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: macro to create an email with unique subject for every value in column A

    replace code in Module 1 with below one:

    Please Login or Register  to view this content.

    Cheers!!

  11. #11
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: macro to create an email with unique subject for every value in column A

    hi can you update on this, if its resolved then mark thread as resolved..

+ 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. Macro to create emai and attach picture for every unique email address.
    By melody10 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-12-2015, 11:45 AM
  2. Macro to create unique id from email address and assign to repeated entries
    By capson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2014, 11:26 PM
  3. [SOLVED] Create macro to send worksheet as body of email using cells as subject line
    By LindaABH in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-16-2012, 07:43 PM
  4. Replies: 6
    Last Post: 12-02-2011, 02:14 PM
  5. Email Macro: File Name Is Subject
    By SamuelT in forum Excel General
    Replies: 3
    Last Post: 11-10-2006, 11:54 AM
  6. [SOLVED] Email Range of Cell Content to create subject and body from link
    By Hahndo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2005, 07:05 PM
  7. Copying and paste it in subject using email macro
    By vane0326 in forum Excel General
    Replies: 0
    Last Post: 02-09-2005, 11:46 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