Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting a line break in the body of an email

Status
Not open for further replies.

plutz

Technical User
Oct 4, 2003
21
US
I have the below code to generate an email with several different lines of text, however i can get the lines of text to start on a new line in the body of the email


Dim olApp As Object
Dim olMsg As Object

Set olApp = CreateObject("Outlook.Application")
Set olMsg = olApp.CreateItem(0)
With olMsg
.To = z
.Cc = B
.Subject = "ECB for " & PrgName & "-" & x
.Body = BodyTxt + " " + BodyTxt1 + " " + BodyTxt2
.Attachments.Add ActiveDocument.Path + "\" + ActiveDocument.Name
.Display
End With
Set olMsg = Nothing
Set olApp = Nothing
 


Hi,
Code:
dim sBody as string

sBody = sLine1 [b]& vblf &[/b] sLine2


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top