Sub Invioemail()
Dim OutApp As Object
Dim OutMail As Object
Dim EmailAddr As String
Dim Subj As String
Dim BodyText As String
EmailAddr = "nome.cognome@XXX.it" '<<< inserire lo/gli indirizzi
Subj = Range("A2").Value
BodyText = Range("F2").Value
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.to = EmailAddr
.CC = ""
.BCC = ""
.Subject = Subj
.Body = BodyText
'.Attachments.Add ActiveWorkbook.FullName
.Display 'or use .send
End With
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
|