If you want to send Multiple Email Addresses From Cells using VBA code then i would suggest you to copy paste the below code i am sure this will help you a lot.
Code:
Sub TestFile()
Dim OutApp1 As Object
Dim Out_Mail As Object
Dim cell1 As Range
Application.ScreenUpdating = False
Set OutApp1 = CreateObject("Outlook.Application")
On Error GoTo cleanup
For Each cell1 In Columns("B").Cells.SpecialCells(xlCellTypeConstants)
If cell1.Value Like "?*@?*.?*" And _
LCase(Cells(cell1.Row, "C").Value) = "yes" Then
Set Out_Mail = OutApp1.CreateItem(0)
On Error Resume Next
With Out_Mail
.To = cell1.Value
.Subject = "Reminder"
.Body = "Dear " & Cells(cell1.Row, "A").Value _
& vbNewLine & vbNewLine & _
"Please contact us to discuss bringing " & _
"your account up to date"
'You can add files also like this
'.Attachments.Add ("C:\test.txt")
.Send 'Or use Display
End With
On Error GoTo 0
Set Out_Mail = Nothing
End If
Next cell1
cleanup:
Set OutApp1 = Nothing
Application.ScreenUpdating = True
End Sub
Bookmarks