Excel - sendmail recipient

Asked By Atisho on 14-Oct-08 11:14 AM
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,
On Error Resume Next
.SendMail Sheets("Options").Range("D21").Value, "EPB"
On Error GoTo 0
.Close SaveChanges:=False
End With

Ron de Bruin replied on 14-Oct-08 11:37 AM
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, _


Regards Ron de Bruin