+ Reply to Thread
Results 1 to 5 of 5

Sending an email from Excel to multiple email addresses

  1. #1
    Registered User
    Join Date
    12-28-2006
    Posts
    97

    Sending an email from Excel to multiple email addresses

    I am using the following code and it works great the only problem is that when I have more then one email address in the same cell it will not send the email. Even if I seperate it with a semicolon. It work fine if I have just one email address in the email field. How can I get it to send the same info to different email addresses.

    Please Login or Register  to view this content.
    Last edited by insanity66; 10-14-2009 at 02:02 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Sending an email from Excel to multiple email addresses

    Hello insanity66,

    Using multiple recipients with the workbook SendMail method is virtually undocumented, save for this clue in the VBA Help files...
    Recipients Required Variant. Specifies the name of the recipient as text, or as an array of text strings if there are multiple recipients. At least one recipient must be specified, and all recipients are added as To recipients.
    Which means you must use the Array function to create a list of recipients.

    Example
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    12-28-2006
    Posts
    97

    Re: Sending an email from Excel to multiple email addresses

    Thanks for your help.

    How do I get the email to display and not send? Is that possible?

  4. #4
    Registered User
    Join Date
    10-14-2009
    Location
    Bristol,England
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sending an email from Excel to multiple email addresses

    I use this code for sending emails

    Please Login or Register  to view this content.
    Enter multiple address seperated by ;

    Change the wait time to a longer value and it will show before sending, or take out the SendKeys String so it shows on the screen and you manually have to press send.

  5. #5
    Registered User
    Join Date
    12-28-2006
    Posts
    97

    Re: Sending an email from Excel to multiple email addresses

    I was able to get it working with this code
    and using semicolons to seperate email addresses
    Thanks for everyone input

    Please Login or Register  to view this content.

+ 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