TheWennerWoman
Active Member
- Joined
- Aug 1, 2019
- Messages
- 303
- Office Version
- 365
- Platform
- Windows
I have a text box on a sheet which is the body of an email that gets generated.
It's formatted properly (ALT + ENTER to create new paragraphs) and the emails look fine.
I've been asked to include a hyperlink in the body so
However, the email now loses all paragraphs and just displays as several sentences strung together.
How do I get .HTMLbody to recognise paragraphs?
Thanks in advance as always.
It's formatted properly (ALT + ENTER to create new paragraphs) and the emails look fine.
I've been asked to include a hyperlink in the body so
VBA Code:
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.SentOnBehalfOfName = Email_address_from
.To = Sheet2.Cells(i, 4).Value
.subject = subject
.body = body '<<<<<< changed this to .HTMLbody
.Send
End With
However, the email now loses all paragraphs and just displays as several sentences strung together.
How do I get .HTMLbody to recognise paragraphs?
Thanks in advance as always.