I have a code to send en email:
Application.DisplayAlerts = False
Set ol = CreateObject("Outlook.Application")
Set MailItem = ol.CreateItem(olMailItem)
My_File1 = "C:\aaa.txt"
Dim Msg As Variant
ThisRecipient = "Tomasz.Skura@thomson.net"
Msg = "Witam," & Chr(10) & Chr(13) & "Nast?puj?ce zamówienia wprowadzone do systemu:"
With MailItem
.To = "Ewa.Lyczko@thomson.net"
.CC = "*PIAS DMS LOGISTIC"
.Subject = "zamówienia BV wprowadzone do systemu"
.Body = Msg
.Display
'.Attachments.Add My_File1, olByValue, 1, "Montly List1"
End With
Set ol = Nothing
Set MailItem = Nothing
Application.DisplayAlerts = True
I would like to paste values from certain range i.e from a1 to f10 from certain sheet into this e-mail as Msg. Is there a simple way to do this?
Application.DisplayAlerts = False
Set ol = CreateObject("Outlook.Application")
Set MailItem = ol.CreateItem(olMailItem)
My_File1 = "C:\aaa.txt"
Dim Msg As Variant
ThisRecipient = "Tomasz.Skura@thomson.net"
Msg = "Witam," & Chr(10) & Chr(13) & "Nast?puj?ce zamówienia wprowadzone do systemu:"
With MailItem
.To = "Ewa.Lyczko@thomson.net"
.CC = "*PIAS DMS LOGISTIC"
.Subject = "zamówienia BV wprowadzone do systemu"
.Body = Msg
.Display
'.Attachments.Add My_File1, olByValue, 1, "Montly List1"
End With
Set ol = Nothing
Set MailItem = Nothing
Application.DisplayAlerts = True
I would like to paste values from certain range i.e from a1 to f10 from certain sheet into this e-mail as Msg. Is there a simple way to do this?