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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Prevent Outlook 2007 from closing



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 16th 08, 02:07 PM posted to microsoft.public.outlook.program_addins
Ivica Muruzovic
external usenet poster
 
Posts: 12
Default Prevent Outlook 2007 from closing


Is there a way to prevent outlook 2007 from closing and can I get
event beforeDelete for mailItem on application level
  #2  
Old April 16th 08, 02:30 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Prevent Outlook 2007 from closing

No, not unless you write code that hangs Outlook or that starts Outlook with
no UI and keeps it running. Synch software does that. But that won't prevent
the user from closing the UI portion of Outlook.

BeforeDelete is at the item level only and will only fire in an open item
when that item is deleted using the File menu in the open item. There is
nothing else equivalent unless you are using Outlook 2007.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ivica Muruzovic" wrote in message
...

Is there a way to prevent outlook 2007 from closing and can I get
event beforeDelete for mailItem on application level


  #3  
Old April 17th 08, 09:43 AM posted to microsoft.public.outlook.program_addins
Ivica Muruzovic
external usenet poster
 
Posts: 12
Default Prevent Outlook 2007 from closing

You write: "There is nothing else equivalent unless you are using
Outlook 2007."

I'm using Outlook 2007.
Did you mean Outlook 2003?

On Wed, 16 Apr 2008 09:30:06 -0400, "Ken Slovak - [MVP - Outlook]"
wrote:

No, not unless you write code that hangs Outlook or that starts Outlook with
no UI and keeps it running. Synch software does that. But that won't prevent
the user from closing the UI portion of Outlook.

BeforeDelete is at the item level only and will only fire in an open item
when that item is deleted using the File menu in the open item. There is
nothing else equivalent unless you are using Outlook 2007.

  #4  
Old April 17th 08, 02:07 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Prevent Outlook 2007 from closing

No, I meant Outlook 2007. In that version there's a new event that's perfect
for what you want. The new Folder.BeforeItemMove event. The VBA signature is
BeforeItemMove(Item As Object, MoveTo As Folder, Cancel As Boolean). The
item is the object being moved/deleted, MoveTo is a Folder object if moving
the item or null (Nothing) if deleting the item, and setting Cancel = true
will cancel the operation before it occurs.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ivica Muruzovic" wrote in message
...
You write: "There is nothing else equivalent unless you are using
Outlook 2007."

I'm using Outlook 2007.
Did you mean Outlook 2003?


 




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 2007 not closing HJA Outlook - General Queries 15 April 21st 08 01:33 PM
Outlook 2007 'hangs' when closing We No Speak Outlook - Installation 2 April 7th 08 02:54 AM
outlook 2007 not closing [email protected] Outlook - General Queries 0 November 2nd 07 04:37 PM
How do I prevent Outlook 2007 from trying to load an uninstalled a dayoff53 Outlook - Installation 2 July 31st 07 03:22 PM
Outlook 2007 crash on closing appointment window NT Outlook - Using Forms 1 September 24th 06 06:01 AM


All times are GMT +1. The time now is 12:36 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.