M
Martin
Hi,
I have some code that sends an e-mail perfectly well however it puts the
first line of the body text at the top, then the attachment and then any
subsequent text below.
My question is how can I ensure the attachment is at the bottom of the e-mail?
Here is the code:
Set outApp = CreateObject("Outlook.Application")
Set outMsg = outApp.CreateItem(olMailItem)
With outMsg
'.Importance = olImportanceHigh
.To = "[email address here]" ' This can be sourced from a form such
as Me.eMailAddress
'.CC = "CC EMAIL ADDRESS GOES HERE"
'.BCC = "BCC EMAIL ADDRESS GOES HERE"
.Subject = "[Subject Here]"
.Body = "[Body Text Here]& vbCrLf & vbCrLf & "[Second line Here]"
.Attachments.Add "[File Name Here]"
.Send
End With
Set outApp = Nothing
Set outMsg = Nothing
Thanks for your help.
Martin
I have some code that sends an e-mail perfectly well however it puts the
first line of the body text at the top, then the attachment and then any
subsequent text below.
My question is how can I ensure the attachment is at the bottom of the e-mail?
Here is the code:
Set outApp = CreateObject("Outlook.Application")
Set outMsg = outApp.CreateItem(olMailItem)
With outMsg
'.Importance = olImportanceHigh
.To = "[email address here]" ' This can be sourced from a form such
as Me.eMailAddress
'.CC = "CC EMAIL ADDRESS GOES HERE"
'.BCC = "BCC EMAIL ADDRESS GOES HERE"
.Subject = "[Subject Here]"
.Body = "[Body Text Here]& vbCrLf & vbCrLf & "[Second line Here]"
.Attachments.Add "[File Name Here]"
.Send
End With
Set outApp = Nothing
Set outMsg = Nothing
Thanks for your help.
Martin