Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Email: Address and portion of body in cell


I am using Ron De Brun's code for emailing a single sheet from
workbook using Outlook. I want to have a cell that the macro will rea
from and make that where the email is sent.

I found this portion of the code on his website

.SendMail Sheets("mysheet").Range("a1").Value, _
"This is the Subject line"


Where would I add it, and would I have to delete a portion of this are
of the code?

With OutMail
.To = ""
.CC = ""
etc etc.

Also, I would like to have a cell that has an order number in it tha
would be changeable from the excel sheet. I then want the order numbe
to appear in the email in the subject or Body of the email. Fo
example, " Your order number is "$A$1" or something of the like, but
doubt it would be that simple

--
pete358
-----------------------------------------------------------------------
pete3589's Profile: http://www.excelforum.com/member.php...fo&userid=2840
View this thread: http://www.excelforum.com/showthread.php?threadid=48429

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Excel Email: Address and portion of body in cell

Hi

SendMail Sheets("mysheet").Range("a1").Value, _
"This is the Subject line"


This is a tip if you use SendMail but you use the Outlook object model

See
http://www.rondebruin.nl/mail/tips2.htm

You can do the same for the subject

..Subject = "Your order number is " & ThisWorkbook.Sheets("Sheet1").Range("A1").Value



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


"pete3589" wrote in message
...

I am using Ron De Brun's code for emailing a single sheet from a
workbook using Outlook. I want to have a cell that the macro will read
from and make that where the email is sent.

I found this portion of the code on his website

SendMail Sheets("mysheet").Range("a1").Value, _
"This is the Subject line"


Where would I add it, and would I have to delete a portion of this area
of the code?

With OutMail
To = ""
CC = ""
etc etc.

Also, I would like to have a cell that has an order number in it that
would be changeable from the excel sheet. I then want the order number
to appear in the email in the subject or Body of the email. For
example, " Your order number is "$A$1" or something of the like, but I
doubt it would be that simple.


--
pete3589
------------------------------------------------------------------------
pete3589's Profile: http://www.excelforum.com/member.php...o&userid=28402
View this thread: http://www.excelforum.com/showthread...hreadid=484294



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
Excel 2003 body of email trish r. Excel Discussion (Misc queries) 2 February 14th 07 04:05 PM
Sort a column of email addresses by end portion of address Jammie Excel Discussion (Misc queries) 6 August 15th 06 10:27 AM
Email Range of Cell Content to create subject and body from link Hahndo Excel Programming 2 September 23rd 05 11:46 PM
body of email disappears when I send an email from Excel ~A Excel Discussion (Misc queries) 0 February 25th 05 10:55 PM
Excel within the body of an email McDougle Excel Programming 1 January 20th 04 09:56 PM


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