A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to input line break in the body of an email defined in vb.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 22nd 06, 12:17 PM posted to microsoft.public.outlook.program_vba
Xluser@work
external usenet poster
 
Posts: 4
Default How to input line break in the body of an email defined in vb.

I am currently completing a macro to automate sending of email with
attachments. This is all working except for the format of the body of the
email which I am struggling with. In the code I have specified the text I
want to send as it is common to all emails. My query is simple, how do I add
like breaks to my text in the body in order for the email to appear as
different lines as in a normal email rather than one long piece of text?

In other words I want to turn:

Dear XX, Please find attached last period sales. Any queries let me know.
Regards.

Into:

Dear XX,

Please find attached last period sales.

Any queries let me know.

Regards

Any help gratefully received.
Ads
  #2  
Old February 22nd 06, 02:20 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to input line break in the body of an email defined in vb.

Is the format of the message HTML, plain text, or RTF?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Xluser@work" wrote in message ...
I am currently completing a macro to automate sending of email with
attachments. This is all working except for the format of the body of the
email which I am struggling with. In the code I have specified the text I
want to send as it is common to all emails. My query is simple, how do I add
like breaks to my text in the body in order for the email to appear as
different lines as in a normal email rather than one long piece of text?

In other words I want to turn:

Dear XX, Please find attached last period sales. Any queries let me know.
Regards.

Into:

Dear XX,

Please find attached last period sales.

Any queries let me know.

Regards

Any help gratefully received.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change email subject line... silas Outlook Express 1 February 27th 06 11:59 PM
How do I append text to the body of a email? Beginner Outlook and VBA 2 February 9th 06 09:36 PM
line breaks in plain text email Michael Logies Outlook - General Queries 4 February 5th 06 08:20 AM
Dragging an email to the Calendar drops the email body text yan Outlook - Calandaring 2 February 1st 06 01:23 AM
New email opens with questions already in the body. [email protected](DO NOT SPAM) Outlook - Using Forms 1 January 25th 06 02:05 PM


All times are GMT +1. The time now is 02:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.