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

Multiline Email using VBA and Redemption



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old April 7th 08, 01:55 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Multiline Email using VBA and Redemption

In each line you are overwriting the previous Body, not appending to it.

Try something like this:

objSafeMsg.Body = objSafeMsg.Body & "" & vbCrLf

That appends whatever is new to the existing Body.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Danu" wrote in message
...
Here are a few lines:

objSafeMsg.Body = "Good Morning," & vbCrLf 'separate lines by adding a
vbCrlf at the end of the line.
objSafeMsg.Body = "" & vbCrLf
objSafeMsg.Body = "This portion of the text is several lines in length
but one paragraph." & vbCrLf
objSafeMsg.Body = "" & vbCrLf
objSafeMsg.Body = "This is a continuation of the email message." &
vbCrLf
objSafeMsg.Body = "" & vbCrLf
objSafeMsg.Body = "Thank you." & vbCrLf

When I send a test email, all I see is "Thank you."

Thanks for your help.


 




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
How to add scroll barto multiline text box Long Nguyen Outlook - Using Forms 0 March 30th 06 08:27 AM
email using redemption Richard Outlook and VBA 10 March 24th 06 08:16 AM
Send email using redemption Richard Outlook - General Queries 3 March 23rd 06 01:44 AM
Redemption Christoph Add-ins for Outlook 5 March 6th 06 03:26 PM
multiline appointments tinaa Outlook - General Queries 0 February 14th 06 05:07 PM


All times are GMT +1. The time now is 03:37 PM.


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