VBCRLF not doing anything

  • Thread starter TheObstacleIsThePath
  • Start date
T

TheObstacleIsThePath

I've been scouring groups for a resolution to this, but I'm
unsuccessful. I can't get a Carriage return/line feed into an
automated email from excel. (using office 2003)


Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = "[email protected]"
.CC = ""
.BCC = ""
.Subject = "This is the Subject line"
.HTMLBody = "first line" & vbCrLf & "next line"
.Display 'or use .Send
End With

It does what it should, but concatenates the body text without line
feeds.

any ideas? an outlook setting?
 
B

Bob Phillips

Not tested, but how about


.HTMLBody = "first line<br />next line"


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top