Excel to Outlook Small Question

  • Thread starter Thread starter twogoodtwo
  • Start date Start date
T

twogoodtwo

I have managed to add a macro in excel that automatically sends email
from excel using

http://www.rondebruin.nl/sendmail.htm

However, Can someone please tell me how I add new paragraphs in th
body of the email.

I want it to say in the body:


"Please find attached"

"Kind regards

"name"

I can't seem to edit .body correctly - anybody got any suggestions?

Thank
 
Thanks but when I download the spreadsheet, I cannot look into the macr
as it permanently asks if the email has been sent and then opens anothe
email!??

Any other suggestions
 
Like Tom already told you look on the Tips on my site.
http://www.rondebruin.nl/mail/tips2.htm

vbNewLine makes a new line

Dim strbody As String
With ThisWorkbook.Sheets("Sheet1")
strbody = "Hi there" & vbNewLine & vbNewLine & _
.Range("A1") & vbNewLine & _
.Range("A2") & vbNewLine & _
.Range("A3") & vbNewLine & _
.Range("A4")
End With

Change the Body line to .Body = strbody to use the string.


--
Regards Ron de Bruin
http://www.rondebruin.nl


Tom Ogilvy said:
Go back to Ron's site. He covers about all the options you could want.
 
Back
Top