Code: Select all
Dim lr2 As Long, lr3 As Long, lr4 As Long, lr5 As Long, lr6 As Long
lr2 = ws2.Cells(1, 1).End(xlDown).row
'...........
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = "Fred"
.Subject = "Files"
.HTMLBody = StrBody
.Attachments.Add wb2.FullName
.Attachments.Add wb3.FullName
.Attachments.Add wb4.FullName
.Attachments.Add wb5.FullName
.Attachments.Add wb6.FullName
.Send
End With
How can I achieve this?