Posted to microsoft.public.excel.programming
|
|
Special Action on E-Mail Error Condition
Hi John
Look here
http://www.rondebruin.nl/sendmail.htm#Prevent
--
Regards Ron de Bruin
http://www.rondebruin.nl
"John Baker" wrote in message ...
Thanks a lot.
Now an even more complicated question..is there some way that i can suppress the outlook
message in its entirety?
This would be particularly desirable since I am , under some circumstances, sending two
messages at the same time to different recipients -- and this means two calls.
Thanks
John
John Baker wrote:
Hi:
I am setting up to E-mail something from excel through Outlook.
The code of interest is:
(messname is the name of the message)
ActiveWorkbook.SendMail ", "), _
messname
The problem is that Outlook pops up a warning message that someone is trying to e-mail,
and asks for approval. If the user approves, thats fine but if they click NO the system
goes off into never never land.
I want to be able to detect that they have clicked no and take specific action to close
some files and tidy things up. My question is how do I do that?
Advice appreciated
John Baker
|