This is the code I got working:
Sub send_email_complete()
Dim outlookApp As Object
Dim myMail As Object
Set outlookApp = CreateObject("Outlook.application")
Set myMail = outlookApp.CreateItem(0)
Dim source_file, to_emails, cc_emails As String
Dim i, j As Integer
For i = 2 To 4
to_emails = to_emails & Cells(i, 1) & ";"
cc_emails = cc_emails & Cells(i, 2) & ";"
Next i
For j = 2 To 5
source_file = "C:\Work Files\" & Cells(j, 3)
myMail.Attachments.Add source_file
Next
ThisWorkbook.Save
source_file = ThisWorkbook.FullName
myMail.Attachments.Add source_file
myMail.CC = cc_emails
myMail.To = to_emails
myMail.Subject = "Files for Everyone"
myMail.Body = "Hi Everyone," & vbNewLine & "Please read these before the meeting." & vbNewLine & "Thanks"
myMail.Display
End Sub
You need to make sure you have the filename in C2:C5 though.
Doesn't need any references either.
Kind Regards,
Elise