Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default body of mail and sheet.

hi

i have constructed a macro which copies cells from an input sheet to a
summary sheet which is then emailed as the body of a message to a specific
person.
However....
i would like to include a short block of text above the table, and am having
problems with putting it on new lines.
i have used "text" & Chr(13) &"text" - - this didnt work
i have used "text" & vbnewline & " text - - this didnt work.

any suggestions?
thanks
mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default body of mail and sheet.

Hi Mike

Try Chr(10)

Sub testmess()
MsgBox ("this is one line" & Chr(10) & "this is another line")
End Sub

worked fine for me
Regards

Roger Govier


mike wrote:
hi

i have constructed a macro which copies cells from an input sheet to a
summary sheet which is then emailed as the body of a message to a specific
person.
However....
i would like to include a short block of text above the table, and am having
problems with putting it on new lines.
i have used "text" & Chr(13) &"text" - - this didnt work
i have used "text" & vbnewline & " text - - this didnt work.

any suggestions?
thanks
mike

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default body of mail and sheet.

No luck.
Any ideas?

Mike

"Roger Govier" wrote:

Hi Mike

Try Chr(10)

Sub testmess()
MsgBox ("this is one line" & Chr(10) & "this is another line")
End Sub

worked fine for me
Regards

Roger Govier


mike wrote:
hi

i have constructed a macro which copies cells from an input sheet to a
summary sheet which is then emailed as the body of a message to a specific
person.
However....
i would like to include a short block of text above the table, and am having
problems with putting it on new lines.
i have used "text" & Chr(13) &"text" - - this didnt work
i have used "text" & vbnewline & " text - - this didnt work.

any suggestions?
thanks
mike


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
e mail same body different subject Marilyn Excel Discussion (Misc queries) 3 May 11th 08 12:31 AM
Mail as body Balu Excel Discussion (Misc queries) 1 May 30th 06 04:17 PM
Body for e-mail using sendMail Tempy Excel Programming 5 September 19th 05 09:07 PM
Formating Body When Sending Mail Andrew Excel Programming 1 June 15th 05 12:55 PM
Mail Sheet as message body AR Excel Programming 1 November 14th 04 08:11 PM


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

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"