View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rojobrown rojobrown is offline
external usenet poster
 
Posts: 22
Default Sending Email through a macro

I'm using the following in vbe for a particular workbook. I would like to be
able to key in a message or a subject before I actually send the file. I
just want to have some control on the file being sent. Can this even be done?

Private Sub Workbook_BeforeClose(Cancel As Boolean)
ThisWorkbook.SendMail Recipients:="recipient@address"
End Sub

--
Thanks a bunch!
rojobrown