Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 267
Default sendmail recipient

does anyone know how to get the email function to email a recipient whos
address is in a cell (D21) ?
eg-- how do i get this to work:-

With Dest
.SaveAs TempFilePath & TempFileName & FileExtStr,
FileFormat:=FileFormatNum
On Error Resume Next
.SendMail Sheets("Options").Range("D21").Value, "EPB"
On Error GoTo 0
.Close SaveChanges:=False
End With
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default sendmail recipient

Looks good

Are you sure that the activeworkbook on this moment have a sheet named "Options"

If not you can point to the workbook with the code like this

..SendMail ThisWorkbook.Sheets("Options").Range("D21").Value, _
"This is the Subject line"


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Atishoo" wrote in message ...
does anyone know how to get the email function to email a recipient whos
address is in a cell (D21) ?
eg-- how do i get this to work:-

With Dest
.SaveAs TempFilePath & TempFileName & FileExtStr,
FileFormat:=FileFormatNum
On Error Resume Next
.SendMail Sheets("Options").Range("D21").Value, "EPB"
On Error GoTo 0
.Close SaveChanges:=False
End With

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
Routing Recipient Hoopster Excel Discussion (Misc queries) 8 July 10th 08 09:03 PM
Sendmail with a named cell value as recipient ssGuru Excel Programming 2 July 3rd 07 08:40 AM
SendMail N_R_M Excel Programming 0 November 21st 05 04:40 PM
Routing Recipient David McRitchie Excel Programming 1 April 29th 04 09:45 PM
SendMail and BCC Darrin Henry Excel Programming 0 September 15th 03 10:17 PM


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