Thanks for the link, lots of usfull stuff there,
The code found below is close to what i need, but in stead of sending different emails to each person, i need to send the same one to all in the list. I was hoping i could do that sending the e-mail to myself and using .BCC to send it to all in the list.
What I'm no good at is looping through the cells with addresses and building a .BCC list. I.E.
mail_list = mail_list & ";" & abc1@abc . com
next 'goto next cell and add that, and so on until the end of the cell range.
Code:
For Each cell In Columns("B").Cells.SpecialCells(xlCellTypeConstants)
If cell.Value Like "?*@?*.?*" And _
LCase(Cells(cell.Row, "C").Value) = "yes" Then
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.To = cell.Value
.Subject = "Reminder"
.Body = "Dear " & Cells(cell.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 OutMail = Nothing
End If
Next cell