+ Reply to Thread
Results 1 to 4 of 4

Bulk emails with individual attachments.

Hybrid View

sureshpunna Bulk emails with individual... 07-07-2014, 04:34 AM
jaslake Re: Bulk emails with... 07-08-2014, 04:50 PM
sureshpunna Re: Bulk emails with... 07-08-2014, 11:56 PM
jaslake Re: Bulk emails with... 07-09-2014, 03:55 PM
  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Bulk emails with individual attachments.

    Hi Experts,

    I have a Excel which is having Name, Email Id and Hyperlink of attachment.

    Can you please help with code where I have to send email (outlook application) individually to all users which I have in excel with attachment of hyperlink.

    Thank you in advance.

    Regards,
    Suresh
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Bulk emails with individual attachments.

    Hi Suresh

    Try this
    Option Explicit
    
    Sub Mail_workbook_Outlook_1()
    'Working in Excel 2000-2013
    'This example send the last saved version of the Activeworkbook
    'For Tips see: http://www.rondebruin.nl/win/winmail/Outlook/tips.htm
      Dim OutApp As Object
      Dim OutMail As Object
      Dim cel As Range
    
      ActiveWorkbook.Names.Add Name:="EmailAddress", RefersTo:= _
                               "=OFFSET(Sheet1!$C$5,0,0,(COUNTA(Sheet1!$C:$C)-1),1)"
    
      For Each cel In Range("EmailAddress")
        Set OutApp = CreateObject("Outlook.Application")
        Set OutMail = OutApp.CreateItem(0)
        On Error Resume Next
        With OutMail
          .to = cel.Value
          .CC = ""
          .BCC = ""
          .Subject = "This is the Subject line"
          .Body = "Hi there"
          .Attachments.Add (cel.Offset(0, 1).Value)
          .Display  'or use .Send
          '      .Send   'or use .Display
        End With
        On Error GoTo 0
        Set OutMail = Nothing
        Set OutApp = Nothing
      Next cel
      Set OutMail = Nothing
      Set OutApp = Nothing
    End Sub
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Bulk emails with individual attachments.

    Hi John,

    Thank you your time/reply

    I'm very poor in VBA, Can you pls send code in above attached file.

    Thanks,
    Suresh

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Bulk emails with individual attachments.

    Hi Suresh

    The attached File is my test File...
    Attached Files Attached Files

+ 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 containing macro to send bulk mails from outlook with multiple attachments
    By amandeep08 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 02:19 PM
  2. [SOLVED] Bulk emails send use outlook & excel coding macro
    By sonu_kumar444 in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 12-26-2012, 08:06 AM
  3. Send outlook emails with message in cells to individual emails associated with them
    By abinayan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2011, 06:11 AM
  4. Saved emails with attachments
    By ir26121973 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2006, 02:10 PM
  5. Replies: 0
    Last Post: 12-15-2005, 09:50 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