Send e-mail with Excel
Posted by Daniel on August 27, 2001 2:34 PM
Hi Everybody,
In the Tip 16, I found the way to send a sheet by mail :
Sub Macro1()
Application.Dialogs(xlDialogSendMail).Show arg1:="toto@com.fr", arg2:="Essai"
End Sub
Everything is ok, but I don't know the way to finally send the mail with no action of the user. The macro prepares the message correctly, but Outlook Express stays waiting for a click on the "Send" button. Is it possible to add a command that automatically clicks on "Send" ? I tried to add :
Application.SendKeys "%s"
but nothing happens.
Thank you for your help.
Regards,
Daniel