+ Reply to Thread
Results 1 to 3 of 3

Help required for sending emails to various address through VBA code

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Kuwait
    MS-Off Ver
    Excel 2007
    Posts
    10

    Help required for sending emails to various address through VBA code

    Experts,

    Good Day. I have some files in D:\test and I need to send these files as attachments to different recipients as per the list attached in the excel file. For files AAA, BBB,CCC etc., in col A, email should be sent to their respective recipient of col C and and CC to col D and bcc to col E. Subject and body of the mail will be same for all mails. Subject of the mail will be cell F2 and body of the mail will be range F3 to F8.

    Thank you.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Help required for sending emails to various address through VBA code

    assuming you have outlook
    try this

    if you need the body on separate lines change & " " & to & chr(13) &

    see note next to the file attach part, i can't quite get that

    Please Login or Register  to view this content.
    Last edited by scott.s.fower; 04-23-2013 at 06:00 PM.

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    Kuwait
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Help required for sending emails to various address through VBA code

    Thanks Scott,
    Sorry for delay in reply. I tried with your code. file attachments are not getting done. Even after removing attachment line, ".Send" is showing error. "Outlook does not recognize one or more names" message is coming. Did u managed it when you are executing this code?

+ 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