A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Macro to close outlook.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 10th 06, 04:57 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 1
Default Macro to close outlook.

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
  #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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook will not close Giggleboy Outlook - Using Forms 3 June 29th 06 10:27 AM
Outlook 2000 won't close Carl Poulson Outlook - General Queries 3 June 27th 06 02:28 PM
Outlook does not close properly Bill Outlook - Installation 3 April 29th 06 03:21 PM
outlook don't close Solki Outlook - General Queries 2 February 6th 06 02:37 PM
Outlook Crash on Close? Mahmoud Outlook - General Queries 1 January 31st 06 10:26 AM


All times are GMT +1. The time now is 10:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.