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

VBA Procedure (or Macro) to Stop Outlook from Closing?



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old December 21st 09, 12:50 AM posted to microsoft.public.outlook.program_vba
Robert Bollinger
external usenet poster
 
Posts: 1
Default Try OutLock

http://www.brothersoft.com/outlock-f...ook-28886.html




ND Pard wrote:

VBA Procedure (or Macro) to Stop Outlook from Closing?
10-Dec-09

I am new to using Outlook, but have written many Access and Excel VBA
procedures.

Often, I unintenionally click the "X" close button in the upper right corner
of the application.

Outlook provides a dialog box that states, "Are you sure you want to
permanently delete all the items and subfolders in the "Deleted Items" folder?

I do NOT want to even close Outlook, much less delete items!

I would like a dialog box that allows me to cancel the closure of Outlook.

What would the VBA macro look like to cancel my unintended closure of Outlook?

Please cc your response to:

Your response will be appreciated.

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
SQLITE 3 for Compact Framework Available
http://www.eggheadcafe.com/tutorials...pact-fram.aspx
 




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
Procedure to transfer all my Outlook 2007 to another computer Serco Outlook - Installation 9 August 18th 09 03:56 PM
Outlook Error:procedure entry point lstrcpynI could not be located Kobus Outlook Express 3 November 15th 07 04:37 PM
How can I stop Outlook from showing 'end' time in Monthly view? & how can I stop it from trimming the appointment titles...? ship Outlook - General Queries 2 January 20th 07 02:54 AM
Why did my macro suddenly stop working? Dale Outlook and VBA 7 March 14th 06 10:22 PM
Outlook 2003 Requirements and Install procedure Michelle Outlook - Installation 3 January 24th 06 11:14 PM


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