I hope that was clear--
I have code that references a text box to create the message body of an Outlook email. For clarity I would like a line feed or two, but I haven't been able to do in the text box/Outlook combination what is easy to do in MsgBox!
I have code such as:
stMessageBody = txtMessageBody & Chr(13) & Chr(10) & txt2ndParagraph
which doesn't work, but I've tried vbNewLine and vbCrLf as well. Is this even possible?
The code fits into a simple Outlook output:
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
With MailOutLook
.To = stRptRecipient
.Subject = stSubjectLine
.HTMLBody = stMessageBody
.Send
End With
-- Thanks!
I have code that references a text box to create the message body of an Outlook email. For clarity I would like a line feed or two, but I haven't been able to do in the text box/Outlook combination what is easy to do in MsgBox!
I have code such as:
stMessageBody = txtMessageBody & Chr(13) & Chr(10) & txt2ndParagraph
which doesn't work, but I've tried vbNewLine and vbCrLf as well. Is this even possible?
The code fits into a simple Outlook output:
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
With MailOutLook
.To = stRptRecipient
.Subject = stSubjectLine
.HTMLBody = stMessageBody
.Send
End With
-- Thanks!