+ Reply to Thread
Results 1 to 7 of 7

Sending Email

  1. #1
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Sending Email

    Hey guys, I got this to work for a single email address. Could someone help me out on the code for sending to multiple email addresses. This is my code so far, but i want it to multiple email addresses. Thanks so much

    Please Login or Register  to view this content.
    Last edited by TShelt; 11-03-2011 at 10:17 AM.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: **HELP Sending Email - Macro

    just but them like this

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: **HELP Sending Email - Macro

    Thanks, knew it was something simple, just couldnt find it.

  4. #4
    Registered User
    Join Date
    11-01-2011
    Location
    Boca Raton, Florida
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Sending Email

    How do you attach a file to the outgoing email? Thanks, Sharon

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Sending Email

    like this:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-01-2011
    Location
    Boca Raton, Florida
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Sending Email

    Thanks for the information. Perhaps I'm not doing something correct. The email goes but without the attachment. All the code is listed below. We use Outlook 2003.

    Sharon


    Sub EmailApps()
    Dim OutApp As Object
    Dim OutMail As Object

    Set OutApp = CreateObject("Outlook.Application")
    Set OutMail = OutApp.CreateItem(0)

    On Error Resume Next
    With OutMail
    .To = "[email protected]"
    .CC = ""
    .BCC = ""
    .Subject = "TEST - Emailing a file"
    .Body = "This is a test email"
    .Attachments.Add "C:\My Documents\stores.txt"
    .Send
    End With
    On Error GoTo 0

    Set OutMail = Nothing
    Set OutApp = Nothing
    End Sub

  7. #7
    Registered User
    Join Date
    11-01-2011
    Location
    Boca Raton, Florida
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Sending Email

    Oops! User error! It works! Sharon

+ 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