+ Reply to Thread
Results 1 to 2 of 2

Sending Email to a List of Recipients Using Excel and Outlook

Hybrid View

Rajesh shishodia Sending Email to a List of... 10-21-2015, 02:41 AM
alansidman Re: Sending Email to a List... 10-21-2015, 09:02 AM
  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

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,755

    Re: Sending Email to a List of Recipients Using Excel and Outlook

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE] [/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. [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