If you separate them with a comma, like:
G:\Shareplan\test_31686\Plan\08\Sale Proceeds\sales_breakdown 210416 ret.pdf, G:\Shareplan\test_31686\Plan\08\Sale Proceeds\sales breakdown 100516 ret.pdf
then you can use:
Sub Excel_Serial_Mail()
Dim objOLOutlook As Object
Dim objOLMail As Object
Dim lngMailNr As Long
Dim lngZaehler As Long
Dim vAttachments
Dim n As Long
Set objOLOutlook = CreateObject("Outlook.Application")
lngMailNr = ActiveSheet.Cells(Rows.Count, 2).End(xlUp).Row
For lngZaehler = 2 To lngMailNr
If Cells(lngZaehler, 2) <> "" Then
Set objOLMail = objOLOutlook.CreateItem(olMailItem)
With objOLMail
.To = Cells(lngZaehler, 3)
.CC = Cells(lngZaehler, 4)
.BCC = "test@test.com"
.SentOnBehalfOfName = "test@test.com"
.Subject = Cells(lngZaehler, 6)
.BodyFormat = olFormatPlain
.Body = Cells(lngZaehler, 7)
If Len(ActiveSheet.Cells(lngZaehler, 8).Value2) <> 0 Then
vAttachments = VBA.Split(ActiveSheet.Cells(lngZaehler, 8).Value2, ",")
For n = LBound(vAttachments) To UBound(vAttachments)
If VBA.Dir$(vAttachments(n)) <> vbNullString Then .Attachments.Add vAttachments(n)
Next n
End If
.Display
End With
Set objOLMail = Nothing
End If
Next lngZaehler
Set objOLOutlook = Nothing
End Sub
which will check each file to see if it exists and add it to the email if it does.
Bookmarks