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

Closing Outlook correctly



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 23rd 06, 06: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, 02:50 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
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, 09: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, 02:50 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
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 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
Closing Outlook 2000 JohnB Outlook - General Queries 4 April 19th 06 06:27 PM
outlook 2000 sp3 hangs up when closing Bob J Outlook - Installation 2 March 31st 06 11:50 PM
Outlook.exe won't shut down when closing the application. Ron S Outlook - Installation 1 February 23rd 06 07:59 PM
Closing Outlook 2003 MCKSR Outlook - General Queries 0 February 6th 06 09:35 PM
Outlook Remains in TaskList after closing (with AddIn) Jeff Simcock Add-ins for Outlook 2 February 2nd 06 03:42 AM


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


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.