Hello Jeeped,
Thanks for the assistance!
I got some help from Mrexcel.com and was given this formula:
Sub Send_Emails_To_and_CC()
Dim ESubject, EBody As String, i As Integer
Dim MObject, nList As String, n2 As String, o As Variant
For i = 2 To 4 'use cells 2 to 4 in column "O" email addresses
If Sheets("Sheet1").Range("O2").Value <> "" Then
nList = nList & ";" & Sheets("Sheet1").Range("O" & i).Value
End If
If Sheets("Sheet1").Range("B2").Value <> "" Then
nList2 = nList2 & ";" & Sheets("Sheet1").Range("B" & i).Value
End If
Next
ActiveWorkbook.Save
Set Mail_Object = CreateObject("Outlook.Application")
With Mail_Object.CreateItem(o)
.Subject = "Files"
.To = nList
.CC = nList2
.Body = "Something goes in here"
.Attachments.Add ActiveWorkbook.FullName 'ActiveWorkbook.FullName
.Send 'Send email, change to send to send straight away use
End With
End Sub
This works! However, if you (or anybody else here) knows how to convert this into a Command Button in my Excel sheet1 where I can click on the button in order to execute this order, after which the button will say something like "Order submitted & Email
sent. Thank you." that would be absolutely amazing!
Thank you so much for your time :)
Best regards,
David