Results 1 to 2 of 2

Sending Email to a List of Recipients Using Excel and Outlook

Threaded View

  1. #1
    Registered User
    Join Date
    05-20-2015
    Location
    India
    MS-Off Ver
    Office 2013
    Posts
    49

    Sending Email to a List of Recipients Using Excel and Outlook

    Hi Team,

    Need some help!

    I have 3 different emails, 3 different attachments, 3 different recipients and 3 different subjects and 3 different mail body contents
    when i run macro every thing working fine but the script unable to picks attachements.

    Please help!

    Please find the attached.

    Thanks in advance!

    Rajesh

    Sub Sendmail()


    Dim OutlookApp As Object
    Dim OutlookMail As Object
    Dim RngList As Range
    Dim Cell As Range
    Dim LastRow As Long


    With Sheets("Sheet1")


    LastRow = Cells(Rows.Count, "A").End(xlUp).Row
    Set RngList = Range("A2:A" & LastRow)


    For Each Cell In RngList
    If Cell.Value <> vbNullString Then
    Set OutlookApp = CreateObject("Outlook.Application")
    Set OutlookMail = OutlookApp.CreateItem(0)
    With OutlookMail
    .To = Cell.Value
    .CC = Cell.Offset(, 1).Value
    .BCC = ""
    .Subject = Cell.Offset(, 3).Value
    .Body = Cell.Offset(, 4).Value
    .Attachments.Add (Cell.Offset(, 5).Value)
    .Display
    End With
    Set OutlookMail = Nothing
    Set OutlookApp = Nothing
    Else

    End If
    Next Cell

    End With


    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Sending Email to Multiple Recipients w/ High Importance
    By eseelhammer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2015, 02:14 PM
  2. Email (outlook) recipients attaching specific Excel file name.
    By monkeypants in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 05-13-2015, 07:14 PM
  3. Replies: 4
    Last Post: 01-02-2014, 12:19 PM
  4. Replies: 0
    Last Post: 09-22-2012, 10:06 AM
  5. Change Case of recipients name when sending email
    By marcusjb in forum Outlook Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2012, 09:36 AM
  6. Need help!! Sending email from outlook through excel
    By tuyash in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2011, 06:04 AM
  7. Replies: 1
    Last Post: 01-13-2005, 02:14 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