Jeffreyxx01
Board Regular
- Joined
- Oct 23, 2017
- Messages
- 156
Hello
I would like to take the data from my workbook and copy and paste these data into an email in outlook.
I have that code already but it does not seem to be enough.
Sub Mail()
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.To = "jcostallat@blabla.com"
.CC = ""
.BCC = ""
.Subject = "details"
.Body = FridayMessage.Range("m9:aa26")
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Set objMsg = Nothing
End Sub
I would like to take the data from my workbook and copy and paste these data into an email in outlook.
I have that code already but it does not seem to be enough.
Sub Mail()
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.To = "jcostallat@blabla.com"
.CC = ""
.BCC = ""
.Subject = "details"
.Body = FridayMessage.Range("m9:aa26")
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Set objMsg = Nothing
End Sub