+ Reply to Thread
Results 1 to 3 of 3

use outlook group to send email using excel 2013 vba

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    use outlook group to send email using excel 2013 vba

    The below vba will send an automated email to a list of addresses in excel 2013 using outlook 2013. Instead of having multiple email addresses in excel, if a distribution list was created in outlook, can that list be used instead?

    For Example, the current code looks to column A, starting at row 2 for an email.... then it sends an email to each address.
    Please Login or Register  to view this content.
    If each one of those email addresses was saved in an outlook group (email), could the group name (email) typed into A2 in the excel, then 3 separate emails sent? Thank you .


    vba
    Please Login or Register  to view this content.
    Edit: I added
    Please Login or Register  to view this content.
    The email address from the contact list from outlook does not transfer to excel and in the To is "Email"
    Error: outlook does not recognize the address.
    Last edited by cmccabe; 03-03-2016 at 08:08 PM. Reason: added edit

  2. #2
    Registered User
    Join Date
    02-26-2016
    Location
    Wisconsin, USA
    MS-Off Ver
    2013, 2016
    Posts
    33

    Re: use outlook group to send email using excel 2013 vba

    You can try the code below. I added a test to see if the rCell contains an 'at' (@) sign. If so, it processes it normally. If not, the code tries to assign a variable to a Contact item named after the rCell value. If it is successful, each member of the distribution list is send a separate email. This way, you can have a mixture of addresses and distribution lists in the rCell range.

    The code below doesn't take into account any of your edit comments. I couldn't find what you meant by you had added the code indicated.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    Re: use outlook group to send email using excel 2013 vba

    Where is the distribution group to use specified or how does the vba know to use the (email) group? Thank you

    The edit was an attempt at trying to achieve this, but it did not work.

    edit: I see now, it works great.... thank you very much
    Last edited by cmccabe; 03-04-2016 at 10:53 AM. Reason: added edit

+ 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. excel VBA to send email through outlook
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-23-2015, 05:26 PM
  2. [SOLVED] Send email from excel to outlook
    By zplugger in forum Excel Programming / VBA / Macros
    Replies: 38
    Last Post: 08-27-2015, 07:56 AM
  3. VBA to Send Email From Excel Using Outlook
    By jar002 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2014, 10:08 AM
  4. Excel VBA to Outlook Meeting Creation, Cannot Send in OL 2013
    By wabashtmac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2014, 02:44 PM
  5. Send email from Excel to Outlook
    By shaukat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-02-2011, 04:46 PM
  6. Send an email with excel VBA through outlook
    By Alicita in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-10-2011, 05:03 PM
  7. VBA to send email from Excel through Outlook
    By diablodvs7 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2008, 10:34 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