Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Copying Cell Value AND Format into Email Body Macro

So my current problem is that I can get the text from my sheet into
the email, but I cant get it to bring the formatting too.

Here is a portion of my current VBA code:

Sub BodyMacro(strbody, email)

Sheets("Body").Select
Range("B1") = email
Calculate

For Each cell In Sheets("Body").Range("A4:A33")
strbody = strbody & cell.Value & vbNewLine
Next

End Sub

This works exactly how I want it to other than I would like the bold,
underline, and italic text in there too. To add to the difficulty,
some of the lines of text bounce between all three. Meaning in cell
A1 its just not all bold text, it will start off bold, then go to
underline, then to regular.

I have also done the "Send to Mail Recipient" and I do not like how
the text doesn't wrap. If this can be down with it wrapping, I would
be open to that suggesting too.

Regards.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Copying Cell Value AND Format into Email Body Macro

Nobody has any idea on how to do this? I have seen a way with a
custom function, but I'm looking for a way to do this without a custom
solution.

Regards,

On Sep 16, 11:11*am, TysonE wrote:
So my current problem is that I can get the text from my sheet into
the email, but I cant get it to bring the formatting too.

Here is a portion of my current VBA code:

Sub BodyMacro(strbody, email)

* * * * Sheets("Body").Select
* * * * Range("B1") = email
* * * * Calculate

* * * * For Each cell In Sheets("Body").Range("A4:A33")
* * * * * * strbody = strbody & cell.Value & vbNewLine
* * * * Next

End Sub

This works exactly how I want it to other than I would like the bold,
underline, and italic text in there too. *To add to the difficulty,
some of the lines of text bounce between all three. *Meaning in cell
A1 its just not all bold text, it will start off bold, then go to
underline, then to regular.

I have also done the "Send to Mail Recipient" and I do not like how
the text doesn't wrap. *If this can be down with it wrapping, I would
be open to that suggesting too.

Regards.


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
Email from excel: Format dollar amount in outlook body sam Excel Programming 3 January 27th 10 09:49 PM
TextBox value on an email body with same format K[_2_] Excel Programming 0 June 10th 09 04:21 PM
Macro to Paste Picture in email body from Clipboard K[_2_] Excel Programming 4 May 13th 09 07:21 PM
COPY/PASTE to body of email the format of Excell cell LetMeDoIt Excel Programming 2 August 4th 08 12:39 PM
Excel Email: Address and portion of body in cell pete3589[_5_] Excel Programming 1 November 11th 05 03:34 PM


All times are GMT +1. The time now is 08:11 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"