+ Reply to Thread
Results 1 to 5 of 5

create new mailmessages depending for each customer

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    9

    create new mailmessages depending for each customer

    Hi Everyone!

    please see attached file first.

    Now, If you use the macro named "x" it will produce information to sheet3.
    the information is grouped by customer. I want each customer to have their information/stats sent to their mailadress(es) found in the Mailinfo-sheet.
    With other words. I need help with creating vba code that open up new mailmessages for each customer that exists on sheet3 and add that customers stats from sheet 3 in the body of the mailmessage.

    I have made an example of how I want a new mailmessage to look like on sheet4.

    So far, I have created two modules (I found the code with google). But what they do is to open up new messages for each customer in the mailinfo list. Instead, I want it to open up new mailmessages for each customers on sheet3.

    So, could anyone of you help me to create the VBA code to make this happen?

    Thanks in advance!

    //Gribbs
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-21-2012
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: create new mailmessages depending for each customer

    Noone who can help me ? ^^

  3. #3
    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: create new mailmessages depending for each customer

    Hi Gribbs

    Please see attached. Note that I've added a dynamic Named Range to Sheet Mailinfo called "Name". Also note that I've modified your "x" macro and that I've modified the "RangetoHTML" code.

    Let me know of issues.
    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.

  4. #4
    Registered User
    Join Date
    08-21-2012
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: create new mailmessages depending for each customer

    Thank you ALOT Jaslake!

    that was amazingly well done!

    //Gribbs

  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: create new mailmessages depending for each customer

    Hi Gribbs

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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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