+ Reply to Thread
Results 1 to 3 of 3

sending mails with table using cell references from excel

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    5

    sending mails with table using cell references from excel

    Hi... I have an excel table which has the below details (Sample). I would like to send out mails through outlook to individuals with their relevant details in a table. For example, if i want to send a mail for "Def", the mail should appear like this with a table

    Name Subject Tag1 Tag2 Tag3 Tag4 Email ID
    Abc Testmail detail1 detail2 detail3 detail4 abc@test.com
    Def Testmail detail5 detail6 detail7 detail8 def@test.com
    Ghi Testmail detail9 detail10 detail11 detail12 ghi@test.com
    Jkl Testmail detail13 detail14 detail15 detail16 jkl@test.com

    Example :
    Dear Def,

    Here are your details

    Tag1 detail5
    Tag2 detail6
    Tag3 detail7
    Tag4 detail8

    Regards,
    xyz

    The above details should represent in a table.

    I have been looking around google since 2 days, despite m beginner in vba codes.
    Help will be highly appreciated.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,725

    Re: sending mails with table using cell references from excel

    See if this link helps. It has sample code for emailing from outlook.

    http://www.rondebruin.nl/win/s1/outlook/mail.htm
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: sending mails with table using cell references from excel

    I tried working with the sample code from rondebruin. The code copies the whole set of range (Whole table) to the outlook mail. However, i need only those details to be copied to outlook (In a table) which are in the same row of an email ID.

+ 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. Possible to use excel to trigger sending of mails??
    By borderfox in forum Excel General
    Replies: 8
    Last Post: 07-14-2011, 08:30 AM
  2. Attachments when sending mails with excel
    By Steffen Thomsen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2011, 05:27 AM
  3. printind and sending e-mails from an excel sheet
    By ksaleh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2009, 09:33 AM
  4. Sending e-mail from Excel results in duplicate e-mails
    By johncassell in forum Excel General
    Replies: 0
    Last Post: 04-26-2007, 10:27 AM
  5. Sending mails on behalf in excel
    By Pavol Uhrin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2005, 03:05 AM

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