Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default outlook email body formatting issues from excel vba

Hi, my name's Kyle.

I'm sending email from Excel VBA for the first time. I've got
everything working just fine and dandy - emails are going where I want
them, with attachments when I want them, but the formatted text
strings (multiple lines of dates, numbers, and text) that I want in
the email body are getting screwed up.

I need a fixed space font to get things lined up.

First, when I was just using .body, the text was showing up in the
resulting email in a proportional font.

So, I figured out that .htmlbody was the way to go, but I'm flailing
around - I've managed to specify a fixed space font, but the spaces
are getting stripped out of my formatted text strings! Is there a way
to prevent my spaces from getting stripped out?

Can someone please help!?

Kyle
Lehigh Valley, PA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default outlook email body formatting issues from excel vba

On Jul 29, 10:28*pm, mr rapidan wrote:
Hi, my name's Kyle.

I'm sending email from Excel VBA for the first time. *I've got
everything working just fine and dandy - emails are going where I want
them, with attachments when I want them, but the formatted text
strings (multiple lines of dates, numbers, and text) that I want in
the email body are getting screwed up.

I need a fixed space font to get things lined up.

First, when I was just using .body, the text was showing up in the
resulting email in a proportional font.

So, I figured out that .htmlbody was the way to go, but I'm flailing
around - I've managed to specify a fixed space font, but the spaces
are getting stripped out of my formatted text strings! *Is there a way
to prevent my spaces from getting stripped out?

Can someone please help!?

Kyle
Lehigh Valley, PA


Solved my own problem.

Used Dick's Clicks RangeToHTML function to put the range I was trying
to email into HTML, and sent that in .htmlbody.

I don't understand what's happening, at all, but it works, and that's
what counts at this point in the evening!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting issues with Excel sheet in email body Saucer Man Excel Discussion (Misc queries) 0 January 6th 09 01:06 PM
How to include Excel charts in Outlook email *body* with VB Chrisso Excel Programming 7 July 29th 08 04:05 PM
Outlook email url in body kevinho[_3_] Excel Programming 2 August 26th 05 12:48 PM
Late Binding to Outlook from Excel: Outlook modifies email body Lenny Wintfeld Excel Programming 0 December 12th 04 04:03 PM
How to paste cells from Excel into Outlook email body? stastim Excel Programming 2 August 23rd 04 06:35 PM


All times are GMT +1. The time now is 12:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"