|
|
Question : Inserting new line into Outlook message text using vba
|
|
|
|
I'm programtically inserting fileds from an Access database into an Outlook email message. The problem is that I would like each field to be inserted on a new line.
I am using the following code: DoCmd.SendObject _ objecttype:=acSendReport, _ ObjectName:="CFS - Single Complaint View email", _ outputformat:=acFormatTXT, _ To:=Me.Opened_By, _ Bcc:=strEmail, _ subject:="Complaint number: " & Me.Complaint_Number & " Customer Name: " & Me.Customer_Name, _ MessageText:="Complaint Description: " & Me.Complaint_Description & " Containment Action: " & Me.Containment_Action & " Containment Date: " & Me.Containment_Date, _ TemplateFile:=""
|
|
|
|
Answer : Inserting new line into Outlook message text using vba
|
|
|
|
Add: "text1" & vbCrLf & "Text2"
|
|
|
|
|