View Single Post
  #2  
Old August 14th 06, 04:48 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Macro to close outlook.

Hi David. Just call Application.Quit. Furthermore, it's not supported to
automate Outlook from a custom application that's run from the Task Scheduler:

The Outlook Object Model is unsuitable to run in a Windows service:
http://support.microsoft.com/default...b;en-us;237913

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


" wrote:

I have a Macro in Outlook that sends an e-mail out with an
attachement, but I would like Outlook to close after the Macro is
complete. Or I would like to have a sperate macro that closes Outlook
completely which I would could run from a Schedualed task at a certian
time and date.

David


Ads