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

Tags: , ,

Closing Outlook correctly





 
 
Thread Tools Display Modes
  #1  
Old April 23rd 06, 07:36 PM posted to microsoft.public.outlook.program_vba
PhilipPainter
external usenet poster
 
Posts: 2
Default Closing Outlook correctly

I need to close outlook fro a spearate process or detect that it cannot be
closed. What I am proposing to do it open outlook and then quit. Check if
there is any explorer or inspector [cannot close]. If none them delete any
process outlook.exe there might be in the background.

Do this sound sound?
--
Philip Painter, HP
Ads
  #2  
Old April 24th 06, 03:50 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,778
Default Closing Outlook correctly

If there are no Explorers or Inspectors then Outlook is either running with
no UI or the UI is closing down. You can call Application.Quit to get
Outlook to close or you could even send a Windows message to Outlook to shut
down but if any other code is running in the background that has Outlook
references Outlook would still hang in the background. Forcing the various
Outlook windows to close using Win32 API calls might not be such a great
idea, it could corrupt things nicely.

What are you trying to do and why?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"PhilipPainter" wrote in message
...
I need to close outlook fro a spearate process or detect that it cannot be
closed. What I am proposing to do it open outlook and then quit. Check if
there is any explorer or inspector [cannot close]. If none them delete any
process outlook.exe there might be in the background.

Do this sound sound?
--
Philip Painter, HP


  #3  
Old April 25th 06, 10:45 AM posted to microsoft.public.outlook.program_vba
PhilipPainter
external usenet poster
 
Posts: 2
Default Closing Outlook correctly

I'm trying to close outlook prior to running a tool EMWProf which updates
profiles.

--
Philip Painter, HP


"Ken Slovak - [MVP - Outlook]" wrote:

If there are no Explorers or Inspectors then Outlook is either running with
no UI or the UI is closing down. You can call Application.Quit to get
Outlook to close or you could even send a Windows message to Outlook to shut
down but if any other code is running in the background that has Outlook
references Outlook would still hang in the background. Forcing the various
Outlook windows to close using Win32 API calls might not be such a great
idea, it could corrupt things nicely.

What are you trying to do and why?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"PhilipPainter" wrote in message
...
I need to close outlook fro a spearate process or detect that it cannot be
closed. What I am proposing to do it open outlook and then quit. Check if
there is any explorer or inspector [cannot close]. If none them delete any
process outlook.exe there might be in the background.

Do this sound sound?
--
Philip Painter, HP



  #4  
Old April 25th 06, 03:50 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,778
Default Closing Outlook correctly

Then checking for Explorers.Count and Inspectors.Count and issuing
Application.Quit is probably the best way to go.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"PhilipPainter" wrote in message
...
I'm trying to close outlook prior to running a tool EMWProf which updates
profiles.

--
Philip Painter, HP


 




Thread Tools
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
Closing Outlook 2000 JohnB Outlook - General Queries 4 April 19th 06 07:27 PM
outlook 2000 sp3 hangs up when closing Bob J Outlook - Installation 2 April 1st 06 12:50 AM
Outlook.exe won't shut down when closing the application. Ron S Outlook - Installation 1 February 23rd 06 08:59 PM
Closing Outlook 2003 MCKSR Outlook - General Queries 0 February 6th 06 10:35 PM
Outlook Remains in TaskList after closing (with AddIn) Jeff Simcock Add-ins for Outlook 2 February 2nd 06 04:42 AM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Masters Degrees Online - Debt Consolidation - Debt Help - Credit Card Consolidation - Loans