sending email within a macro

  • Thread starter Thread starter Joe S.
  • Start date Start date
J

Joe S.

In my endless quest to automate my personal files, I'm
trying to have a macro email my cells in the body of an
email. I've done this using the

ActiveWorkbook.SendMail recipients:="Jean Selva"

vb command. Works great, just as I wanted. The only
problem is that it STILL prompts for user input. A
warning pops up saying that a program is automatically
sending email on my behalf. I must then wait 5 seconds
and press "yes."

How can I get rid of this warning. I haven't been able
to take vacation time because the data I send out is
critical, and I'm trying to get this stuff automated.
 
I tested this and it worked in a macro of mine without any
prompt. Try this:

Application.DisplayAlerts = False
ActiveWorkbook.SendMail Recipients:="(e-mail address removed)"
Application.DisplayAlerts = True

-IA
 
It actually appears to be a warning within Outlook 2003.
The .displayalerts didn't work on my machine. Are you
running Outlook 2003?
 
I do not have Outlook running, I use a different mail
application. It looks like you already have some
substantial suggestions from others to sink your teeth
into, so I am going to let go on this topic. Glad you got
the info.

-IA
 
Back
Top