Dear All,
currently I have working VBA code which open new email, set subject, recipients etc:
However, I wanna to copy some selection/range from excel and put in the same format but in outlook message.
How to do it ? I don't paste it as image but only as editable table from excel.
Thanks,
Adam
currently I have working VBA code which open new email, set subject, recipients etc:
VBA Code:
Sub Send_email()
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
strBody = "<FONT SIZE = 3>DHL Express w zalaczeniu. "
With OutMail
.Display
.To = "xxx@aaa.com"
.CC = "xxx@aaa.com"
.BCC = ""
.Subject = "Przerzuty - " & Date
.HTMLBody = strBody & .HTMLBody
.Display
End With
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
However, I wanna to copy some selection/range from excel and put in the same format but in outlook message.
VBA Code:
Range("A3").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
How to do it ? I don't paste it as image but only as editable table from excel.
Thanks,
Adam