Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a value from a cell in an email subject line

Status
Not open for further replies.

pryest

Programmer
Dec 26, 2006
24
US
My first question was how to have a macro email a document to a specific address. John was great to give me the code below to do this. One addition question I have is how can I pull a value from a Cell in the document to be included in the subject line of the email. Thanks

CODE
ActiveWorkbook.SendMail "Recipient@emailaddress.com", "Subject"

Mike



 
A starting point:
With ActiveWorkbook
.SendMail "Recipient@emailaddress.com", .Sheets("SheetName").Range("C7")
End With

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top