Using both Outlook and Outlook Express

B

Bob 4

Our users just threw me a curve. I have an Outlook 2003 application that
uses SendObject quite nicely for sending email to our customer using MS
Outlook. We're adding more uses and some us MS Outlook Express.

SendObject works properly and populates the correct fields in MS Outlook
Express but all my line feeds and indent spacing are removed.

Can anyone tell me how to use SendObject with MS Outlook Express so that
line feeds and leading spaces in text are not removed.

Thanks, bob
 
A

Arvin Meyer MVP

Your code for a line feed must include a carriage return so these are your
choices:

Chr(13) & Chr(10)

vbCrLf

vbNewLine

vbCr & vbLf

All of them work in VBA. Indents cannot use the Tab character which is
Chr(9). Instead use the Space function like:

Space(5) & Me.txtBodyText
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top